/* 登录注册模态框样式 */
:root {
    --primary-color: #8B0000;
    --secondary-color: #DAA520;
    --text-color: #333;
    --light-text-color: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Noto Serif SC', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow: auto;
}

/* 登录模态框覆盖层 */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* 登录模态框内容 */
.login-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关闭按钮 */
.login-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 0, 0, 0.1);
    color: var(--primary-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 10;
}

.login-close-btn:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: scale(1.1);
}

/* 认证表单 */
.auth-form {
    padding: 30px 25px;
    display: none;
}

.auth-form.active {
    display: block;
}

/* 表单头部 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.logo-container i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo-container h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.form-subtitle {
    color: var(--light-text-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 表单内容 */
.auth-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 输入组 */
.input-group {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0 15px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.input-wrapper i {
    color: var(--light-text-color);
    font-size: 1rem;
    margin-right: 12px;
    transition: var(--transition);
}

.input-wrapper:focus-within i {
    color: var(--primary-color);
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-family: var(--font-family);
}

.input-wrapper input::placeholder {
    color: var(--light-text-color);
}

/* 密码显示切换按钮 */
.password-toggle {
    background: none;
    border: none;
    color: var(--light-text-color);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* 验证码按钮 */
.verification-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.verification-btn:hover {
    background: #A52A2A;
}

.verification-btn:disabled {
    background: var(--light-text-color);
    cursor: not-allowed;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.remember-me,
.agree-terms {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

.remember-me input,
.agree-terms input {
    /* 隐藏原生复选框，使用自定义的 .checkmark 显示 */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    transition: var(--transition);
}

.remember-me input:checked + .checkmark,
.agree-terms input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition);
}

.remember-me input:checked + .checkmark::after,
.agree-terms input:checked + .checkmark::after {
    opacity: 1;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 认证按钮 */
.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), #A52A2A);
    color: white;
}

.login-btn:hover {
    background: linear-gradient(135deg, #A52A2A, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

.register-btn {
    background: linear-gradient(135deg, var(--secondary-color), #FFD700);
    color: var(--primary-color);
}

.register-btn:hover {
    background: linear-gradient(135deg, #FFD700, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.forgot-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.forgot-btn:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* 表单底部 */
.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer p {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 加载覆盖层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: white;
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #8B0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8B0000, #DAA520);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

/* 手机端加载动画优化 */
@media (max-width: 768px) {
    .loading-overlay {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }
    
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .spinner::after {
        width: 16px;
        height: 16px;
    }
}

.loading-spinner p {
    font-size: 1rem;
    margin: 0;
}

/* 输入验证样式 */
.input-wrapper.error {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

.input-wrapper.success {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 错误提示样式 */
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeInUp 0.3s ease-out;
}

.error-message::before {
    content: '⚠';
    font-size: 0.9rem;
}

.success-message {
    color: #28a745;
    font-size: 0.8rem;
    margin-top: 5px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeInUp 0.3s ease-out;
}

.success-message::before {
    content: '✓';
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 手机端错误提示优化 */
@media (max-width: 768px) {
    .error-message,
    .success-message {
        font-size: 0.75rem;
        margin-top: 3px;
        padding-left: 12px;
    }
    
    .input-wrapper.error {
        animation: mobileShake 0.5s ease-in-out;
    }
    
    @keyframes mobileShake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-3px); }
        75% { transform: translateX(3px); }
    }
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10002;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.show {
    display: flex;
}

.success-toast {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.error-toast {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* 深色模式支持 */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-theme .login-modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-theme .logo-container h1 {
    color: #e0e0e0;
}

body.dark-theme .form-subtitle {
    color: #b0b0b0;
}

body.dark-theme .input-wrapper {
    background: #1a1a1a;
    border-color: #404040;
}

body.dark-theme .input-wrapper:focus-within {
    border-color: var(--primary-color);
}

body.dark-theme .input-wrapper input {
    color: #e0e0e0;
}

body.dark-theme .input-wrapper input::placeholder {
    color: #888;
}

body.dark-theme .remember-me,
body.dark-theme .agree-terms {
    color: #b0b0b0;
}

body.dark-theme .checkmark {
    background: #1a1a1a;
    border-color: #404040;
}

body.dark-theme .form-footer p {
    color: #b0b0b0;
}

/* 深色模式手机端优化 */
@media (max-width: 768px) {
    body.dark-theme .login-modal-overlay {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12px);
    }
    
    body.dark-theme .login-modal-content {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        border: 1px solid #404040;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    
    body.dark-theme .input-wrapper {
        background: rgba(255, 255, 255, 0.05);
        border-color: transparent;
    }
    
    body.dark-theme .input-wrapper:focus-within {
        border-color: #8B0000;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
    }
    
    body.dark-theme .input-wrapper input {
        color: #e0e0e0;
    }
    
    body.dark-theme .input-wrapper input::placeholder {
        color: rgba(224, 224, 224, 0.5);
    }
    
    body.dark-theme .password-toggle {
        color: rgba(224, 224, 224, 0.5);
    }
    
    body.dark-theme .password-toggle:hover {
        color: #8B0000;
    }
    
    body.dark-theme .auth-btn {
        background: linear-gradient(135deg, #8B0000, #A52A2A);
        color: #fff;
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    }
    
    body.dark-theme .auth-btn:hover {
        background: linear-gradient(135deg, #A52A2A, #8B0000);
        box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    }
    
    body.dark-theme .remember-me,
    body.dark-theme .agree-terms {
        color: #b0b0b0;
    }
    
    body.dark-theme .checkbox-wrapper input[type="checkbox"] {
        accent-color: #8B0000;
    }
    
    body.dark-theme .forgot-password {
        color: #8B0000;
    }
    
    body.dark-theme .forgot-password:hover {
        color: #DAA520;
    }
    
    body.dark-theme .form-footer {
        border-top-color: #404040;
    }
    
    body.dark-theme .form-footer p {
        color: #b0b0b0;
    }
    
    body.dark-theme .form-footer a {
        color: #8B0000;
    }
    
    body.dark-theme .form-footer a:hover {
        color: #DAA520;
    }
    
    body.dark-theme .login-close-btn {
        background: rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }
    
    body.dark-theme .login-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    body.dark-theme .toast {
        background: rgba(45, 45, 45, 0.95);
        color: #e0e0e0;
        border: 1px solid #404040;
    }
    
    body.dark-theme .verification-btn {
        background: linear-gradient(135deg, #8B0000, #A52A2A);
        color: #fff;
    }
    
    body.dark-theme .verification-btn:hover {
        background: linear-gradient(135deg, #A52A2A, #8B0000);
    }
}

/* APP模式优化 */
body.app-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

body.app-mode .login-modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    padding: 0;
}

body.app-mode .login-modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    animation: appSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes appSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.app-mode .auth-form {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.app-mode .logo-container i {
    font-size: 4rem;
    background: linear-gradient(135deg, #8B0000, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: appLogoFloat 3s ease-in-out infinite;
}

@keyframes appLogoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

body.app-mode .logo-container h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8B0000, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.app-mode .form-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

body.app-mode .input-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

body.app-mode .input-wrapper:focus-within {
    border-color: #8B0000;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.2);
    transform: translateY(-2px);
}

body.app-mode .input-wrapper input {
    padding: 18px 0;
    font-size: 1.1rem;
    color: #fff;
}

body.app-mode .input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.app-mode .input-wrapper i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

body.app-mode .input-wrapper:focus-within i {
    color: #8B0000;
}

body.app-mode .auth-btn {
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: #fff;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.app-mode .auth-btn:hover {
    background: linear-gradient(135deg, #A52A2A, #8B0000);
    box-shadow: 0 12px 30px rgba(139, 0, 0, 0.4);
    transform: translateY(-3px);
}

body.app-mode .auth-btn:active {
    transform: scale(0.98);
}

body.app-mode .form-options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin: 20px 0;
}

body.app-mode .remember-me,
body.app-mode .agree-terms {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

body.app-mode .checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8B0000;
}

body.app-mode .forgot-password {
    color: #8B0000;
    font-size: 0.9rem;
    font-weight: 500;
}

body.app-mode .form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.app-mode .form-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

body.app-mode .form-footer a {
    color: #8B0000;
    font-weight: 600;
}

body.app-mode .login-close-btn {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.2rem;
}

body.app-mode .login-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

body.app-mode .toast {
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 15px 20px;
    font-size: 0.9rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .login-modal-overlay {
        padding: 20px;
        backdrop-filter: blur(8px);
        background: rgba(0, 0, 0, 0.6);
    }
    
    .login-modal-content {
        width: 50%;
        min-width: 320px;
        max-width: 400px;
        margin: 0 auto;
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        animation: mobileSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    @keyframes mobileSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .auth-form {
        padding: 25px 22px;
    }
    
    .logo-container {
        margin-bottom: 22px;
    }
    
    .logo-container i {
        font-size: 2.5rem;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #8B0000, #DAA520);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .logo-container h1 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 18px;
    }
    
    .input-wrapper {
        position: relative;
        padding: 0 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .input-wrapper:focus-within {
        border-color: #8B0000;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    .input-wrapper input {
        padding: 14px 0;
        font-size: 0.95rem;
        background: transparent;
        border: none;
        outline: none;
        width: 100%;
        color: var(--text-color);
    }
    
    .input-wrapper input::placeholder {
        color: var(--light-text-color);
        font-weight: 400;
    }
    
    .password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        font-size: 1rem;
        padding: 4px;
        transition: color 0.3s ease;
    }
    
    .password-toggle:hover {
        color: #8B0000;
    }
    
    .auth-btn {
        padding: 14px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 12px;
        margin-top: 10px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .auth-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .auth-btn:hover::before {
        left: 100%;
    }
    
    .auth-btn:active {
        transform: scale(0.98);
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin: 15px 0;
    }
    
    .remember-me,
    .agree-terms {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .checkbox-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    
    .checkbox-wrapper input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        accent-color: #8B0000;
    }
    
    .forgot-password {
        font-size: 0.8rem;
        color: #8B0000;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .forgot-password:hover {
        color: #DAA520;
        text-decoration: underline;
    }
    
    .form-footer {
        margin-top: 18px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-footer p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .form-footer a {
        color: #8B0000;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .form-footer a:hover {
        color: #DAA520;
        text-decoration: underline;
    }
    
    .login-close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .login-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .toast {
        top: 15px;
        right: 15px;
        left: 15px;
        padding: 12px 15px;
        font-size: 0.85rem;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* 验证码按钮优化 */
    .verification-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 8px;
        margin-left: 8px;
        white-space: nowrap;
        min-width: 80px;
    }
    
    /* 输入框组布局优化 */
    .input-group.verification-group {
        display: flex;
        align-items: stretch;
        gap: 8px;
    }
    
    .input-group.verification-group .input-wrapper {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .login-modal-overlay {
        padding: 15px;
    }
    
    .login-modal-content {
        width: 50%;
        min-width: 280px;
        max-width: 350px;
        margin: 0 auto;
        border-radius: 12px;
        max-height: 75vh;
        animation: mobileSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .auth-form {
        padding: 18px 15px;
    }
    
    .logo-container {
        margin-bottom: 18px;
        text-align: center;
    }
    
    .logo-container i {
        font-size: 2rem;
        margin-bottom: 6px;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .form-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .input-wrapper {
        padding: 0 10px;
        border-radius: 10px;
    }
    
    .input-wrapper input {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    
    .input-wrapper:focus-within {
        transform: translateY(-1px);
    }
    
    .password-toggle {
        right: 10px;
        font-size: 0.9rem;
    }
    
    .auth-btn {
        padding: 10px;
        font-size: 0.85rem;
        border-radius: 10px;
        margin-top: 6px;
    }
    
    .form-options {
        gap: 10px;
        margin: 15px 0;
    }
    
    .remember-me,
    .agree-terms {
        font-size: 0.75rem;
    }
    
    .checkbox-wrapper input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .forgot-password {
        font-size: 0.75rem;
    }
    
    .form-footer {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .form-footer p {
        font-size: 0.8rem;
    }
    
    .login-close-btn {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .toast {
        top: 12px;
        right: 12px;
        left: 12px;
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .verification-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 6px;
        min-width: 70px;
    }
    
    .input-group.verification-group {
        gap: 6px;
    }
}
