/* 登录注册页面美化增强 - 黄色系优雅风格 */

/* ======================== 整体容器优化 ======================== */

.auth-container {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 50%, #ffffff 100%) !important;
    min-height: calc(100vh - 60px) !important;
}

/* ======================== 登录框美化 ======================== */

.auth-box {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(245, 127, 23, 0.15) !important;
    border: 1px solid rgba(245, 127, 23, 0.1) !important;
    overflow: hidden !important;
    max-width: 450px !important;
}

/* ======================== 标签页优化 ======================== */

.auth-tabs {
    background: linear-gradient(135deg, #FFF8E1, #ffffff) !important;
    border-bottom: 2px solid rgba(245, 127, 23, 0.1) !important;
    padding: 5px 0 !important;
}

.auth-tab {
    padding: 18px 20px !important;
    font-weight: 600 !important;
    color: #666 !important;
    font-size: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.auth-tab:hover {
    color: #F57F17 !important;
    background: rgba(245, 127, 23, 0.05) !important;
}

.auth-tab.active {
    color: #F57F17 !important;
    background: #ffffff !important;
    border-bottom: 3px solid #F57F17 !important;
    font-weight: 700 !important;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F57F17, transparent);
    border-radius: 3px;
}

/* ======================== 表单内容区域 ======================== */

.auth-content {
    padding: 35px 40px !important;
    background: #ffffff !important;
}

/* 标题美化 */
.auth-content h2 {
    color: #333 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
}

/* ======================== 表单输入框优化 ======================== */

.form-group {
    margin-bottom: 22px !important;
    position: relative !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 10px !important;
    color: #444 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.form-group input,
.form-control,
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #E0E0E0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    color: #333 !important;
    background: #FAFAFA !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

/* 输入框焦点状态 */
.form-group input:focus,
.form-control:focus,
.auth-form input:focus {
    border-color: #F57F17 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(245, 127, 23, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px);
}

/* 输入框占位符 */
.form-group input::placeholder,
.form-control::placeholder,
.auth-form input::placeholder {
    color: #999 !important;
    opacity: 0.8 !important;
}

/* 输入框悬停 */
.form-group input:hover,
.form-control:hover,
.auth-form input:hover {
    border-color: #FBC02D !important;
    background: #ffffff !important;
}

/* ======================== 表单选项优化 ======================== */

.form-options {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 22px !important;
    font-size: 14px !important;
}

/* 记住密码复选框 */
.remember-me,
.terms {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1a1a1a !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.remember-me input[type="checkbox"],
.terms input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #F57F17 !important;
}

/* 协议链接样式优化 */
.terms a {
    color: #F57F17 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.terms a:hover {
    color: #E65100 !important;
    text-decoration: underline !important;
}

/* 忘记密码链接 */
.forgot-password {
    color: #F57F17 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.forgot-password:hover {
    color: #E65100 !important;
    text-decoration: underline !important;
}

/* ======================== 登录/注册按钮优化 ======================== */

.auth-btn,
button[type="submit"],
.submit-btn {
    width: 100% !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #F57F17, #E65100) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 6px 20px rgba(245, 127, 23, 0.3) !important;
    letter-spacing: 0.5px !important;
}

.auth-btn:hover,
button[type="submit"]:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #E65100, #D84315) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.4) !important;
}

.auth-btn:active,
button[type="submit"]:active,
.submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.3) !important;
}

/* ======================== 第三方登录优化 ======================== */

.social-login {
    margin-top: 30px !important;
    text-align: center !important;
    padding-top: 25px !important;
    border-top: 1px solid #f0f0f0 !important;
}

.social-login p {
    color: #888 !important;
    margin-bottom: 18px !important;
    font-size: 14px !important;
}

.social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

.social-icon {
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f8f8 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    color: #666 !important;
    font-size: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.social-icon:hover {
    background: linear-gradient(135deg, #F57F17, #FBC02D) !important;
    border-color: #F57F17 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(245, 127, 23, 0.3) !important;
}

/* 微信图标 */
.social-icon.wechat:hover {
    background: linear-gradient(135deg, #09BB07, #07C160) !important;
    border-color: #09BB07 !important;
}

/* QQ图标 */
.social-icon.qq:hover {
    background: linear-gradient(135deg, #12B7F5, #00A4FF) !important;
    border-color: #12B7F5 !important;
}

/* 微博图标 */
.social-icon.weibo:hover {
    background: linear-gradient(135deg, #E6162D, #FF8200) !important;
    border-color: #E6162D !important;
}

/* ======================== 验证码输入框 ======================== */

.verification-group {
    display: flex !important;
    gap: 10px !important;
}

.verification-group input {
    flex: 1 !important;
}

.verification-group button,
.get-code-btn,
.send-code-btn {
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #FBC02D, #FDD835) !important;
    color: #3E2723 !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
}

.verification-group button:hover,
.get-code-btn:hover,
.send-code-btn:hover {
    background: linear-gradient(135deg, #F57F17, #FBC02D) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.4) !important;
}

/* 倒计时状态 */
.verification-group button:disabled,
.get-code-btn:disabled,
.send-code-btn:disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ======================== 错误提示优化 ======================== */

.error-message,
.alert-danger,
.error-text {
    background: rgba(244, 67, 54, 0.1) !important;
    border-left: 4px solid #F44336 !important;
    color: #D32F2F !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* 成功提示 */
.success-message,
.alert-success {
    background: rgba(76, 175, 80, 0.1) !important;
    border-left: 4px solid #4CAF50 !important;
    color: #2E7D32 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ======================== 加载状态 ======================== */

.loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}

.loading::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: -10px !important;
    margin-top: -10px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ======================== 响应式优化 ======================== */

@media (max-width: 768px) {
    .auth-box {
        max-width: 100% !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    
    .auth-content {
        padding: 25px 20px !important;
    }
    
    .auth-tab {
        padding: 15px 10px !important;
        font-size: 15px !important;
    }
    
    .form-group input,
    .form-control,
    .auth-form input {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    .auth-btn,
    button[type="submit"] {
        padding: 14px 18px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .auth-content {
        padding: 20px 16px !important;
    }
    
    .verification-group {
        flex-direction: column !important;
    }
    
    .verification-group button,
    .get-code-btn {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* ======================== 动画效果 ======================== */

/* 输入框聚焦动画 */
@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

.form-group.animated input {
    animation: inputFocus 0.3s ease !important;
}

/* 按钮点击动画 */
@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* ======================== 无障碍优化 ======================== */

/* 焦点可见性 */
.auth-btn:focus,
button:focus,
input:focus {
    outline: 3px solid rgba(245, 127, 23, 0.3) !important;
    outline-offset: 2px !important;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .auth-box {
        border: 3px solid #F57F17 !important;
    }
    
    .form-group input,
    .form-control {
        border: 3px solid #666 !important;
    }
    
    .auth-btn {
        border: 3px solid #000 !important;
    }
}

/* ======================== 打印样式 ======================== */

@media print {
    .auth-container {
        background: #ffffff !important;
    }
    
    .auth-box {
        box-shadow: none !important;
        border: 2px solid #000 !important;
    }
    
    .auth-btn,
    .social-login {
        display: none !important;
    }
}

/* ======================== 性能优化 ======================== */

.auth-box,
.auth-btn,
.form-group input,
.social-icon {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ======================== 结束 ======================== */

