/* 账号登录模态框样式 */
.modal-account-login {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.2);
    color: #fff;
    padding: 30px 25px;
    text-align: center;
    z-index: 199999;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    min-height: 300px;
    transition: all 0.3s ease;
}

.modal-account-login.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.4s ease;
}

.modal-account-login h2 {
    background: linear-gradient(to right, #4eceff, #c054ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-size: 24px;
}

/* 关闭按钮样式 */
.modal-account-login .close-account-login-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(16, 20, 43, 0.9);
    border: 1px solid rgba(78, 204, 255, 0.4);
    border-radius: 50%;
    color: #4eceff;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 5px rgba(78, 204, 255, 0.3);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.modal-account-login .close-account-login-button:hover {
    background: rgba(78, 204, 255, 0.2);
    transform: rotate(90deg);
}

.modal-account-login .close-account-login-button svg {
    width: 16px;
    height: 16px;
    stroke: #4eceff;
    stroke-width: 2.5;
    fill: none;
    display: block;
    opacity: 1;
    pointer-events: none;
    min-width: 20px;
}

.modal-account-login .account-login-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.modal-account-login .form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.modal-account-login input[type="text"],
.modal-account-login input[type="password"] {
    background: rgba(16, 20, 43, 0.7);
    border: 1px solid rgba(78, 204, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.modal-account-login input[type="text"]:focus,
.modal-account-login input[type="password"]:focus {
    border-color: #4eceff;
    box-shadow: 0 0 10px rgba(78, 204, 255, 0.5), inset 0 1px 4px rgba(0, 0, 0, 0.2);
    outline: none;
}

.modal-account-login .buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.modal-account-login button {
    flex: 1;
    background: linear-gradient(135deg, #4eceff, #c054ff);
    border-radius: 12px;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.modal-account-login button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.modal-account-login button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button hover effect */
.modal-account-login button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal-account-login button:hover::after {
    left: 100%;
}

.modal-account-login .account-action-links {
    margin-top: 20px;
    text-align: center;
}

.modal-account-login .account-action-links a {
    color: #4eceff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.modal-account-login .account-action-links a:hover {
    color: #c054ff;
    text-decoration: underline;
}

.modal-account-login .message {
    margin-top: 12px;
    font-size: 14px;
    color: #ff4f4f;
}

/* 账号注册模态框样式 */
.modal-account-register {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.2);
    color: #fff;
    padding: 30px 25px;
    text-align: center;
    z-index: 99999;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    min-height: 350px;
    transition: all 0.3s ease;
}

.modal-account-register.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.4s ease;
}

.modal-account-register h2 {
    background: linear-gradient(to right, #4eceff, #c054ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-size: 24px;
}

/* 关闭按钮样式 */
.modal-account-register .close-account-register-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(16, 20, 43, 0.9);
    border: 1px solid rgba(78, 204, 255, 0.4);
    border-radius: 50%;
    color: #4eceff;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 5px rgba(78, 204, 255, 0.3);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.modal-account-register .close-account-register-button:hover {
    background: rgba(78, 204, 255, 0.2);
    transform: rotate(90deg);
}

.modal-account-register .close-account-register-button svg {
    width: 16px;
    height: 16px;
    stroke: #4eceff;
    stroke-width: 2.5;
    fill: none;
    display: block;
    opacity: 1;
    pointer-events: none;
    min-width: 20px;
}

.modal-account-register .account-register-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.modal-account-register .form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.modal-account-register input[type="text"],
.modal-account-register input[type="password"] {
    background: rgba(16, 20, 43, 0.7);
    border: 1px solid rgba(78, 204, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.modal-account-register input[type="text"]:focus,
.modal-account-register input[type="password"]:focus {
    border-color: #4eceff;
    box-shadow: 0 0 10px rgba(78, 204, 255, 0.5), inset 0 1px 4px rgba(0, 0, 0, 0.2);
    outline: none;
}

.modal-account-register .buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.modal-account-register button {
    flex: 1;
    background: linear-gradient(135deg, #4eceff, #c054ff);
    border-radius: 12px;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.modal-account-register button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.modal-account-register button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button hover effect */
.modal-account-register button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal-account-register button:hover::after {
    left: 100%;
}

.modal-account-register .account-action-links {
    margin-top: 20px;
    text-align: center;
}

.modal-account-register .account-action-links a {
    color: #4eceff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.modal-account-register .account-action-links a:hover {
    color: #c054ff;
    text-decoration: underline;
}

.modal-account-register .message {
    margin-top: 12px;
    font-size: 14px;
    color: #ff4f4f;
}

/* Animation */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-account-login,
    .modal-account-register {
        width: 90%;
        padding: 25px 20px;
    }

    .modal-account-login h2,
    .modal-account-register h2 {
        font-size: 20px;
    }

    .modal-account-login .account-action-links a,
    .modal-account-register .account-action-links a {
        font-size: 12px;
    }

    .modal-account-login button,
    .modal-account-register button {
        font-size: 14px;
        padding: 10px 15px;
    }
} 