/* ===== 认证页面样式 ===== */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header i {
    font-size: 48px;
    background: linear-gradient(135deg, #FF6B35 0%, #9B4DCA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.auth-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.auth-header .highlight {
    color: #FF6B35;
    font-weight: 600;
}

/* 表单样式 */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 8px;
    color: #FF6B35;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-group input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #FF6B35;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: #ff4444;
    transition: all 0.3s ease;
}

.password-strength small {
    font-size: 12px;
    font-weight: 600;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-label a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 14px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

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

/* 按钮样式 */
.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.btn-block i {
    margin-right: 8px;
}

/* 分隔线 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    color: #999;
    font-size: 14px;
}

/* 底部链接 */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    font-size: 15px;
    color: #666;
}

.auth-footer a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

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

/* 加载遮罩 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    z-index: 10;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    margin-top: 16px;
    font-size: 16px;
    color: #666;
}

/* 消息提示 */
.error-message,
.success-message {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideInUp 0.3s ease-out;
    z-index: 11;
}

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

.error-message {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef5350;
}

.error-message i {
    font-size: 20px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #66bb6a;
}

.success-message i {
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
        margin: 20px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .auth-header i {
        font-size: 40px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* 用户信息卡片（在导航栏中使用） */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #9B4DCA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.user-credits {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.user-credits i {
    color: #FFD700;
    margin-right: 4px;
}

/* 下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f5f5f5;
}

.user-dropdown i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-dropdown .divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.user-dropdown button.logout {
    color: #ff4444;
}
