/* ==================== Auth Pages (Login / Register / Forgot / Reset) ==================== */
.auth-page {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background: #f0f2f5;
}

/* ===== 左侧品牌区 ===== */
.auth-brand {
    width: 42%;
    background: linear-gradient(160deg, #1a1a3e 0%, #2d2b6b 40%, #4c3fb5 70%, #6c5ce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

/* 装饰光晕 */
.auth-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatParticle 8s ease-in-out infinite;
}

.auth-particle.p1 {
    width: 300px;
    height: 300px;
    top: -8%;
    right: -5%;
    background: rgba(108, 92, 231, 0.35);
    animation-delay: 0s;
}

.auth-particle.p2 {
    width: 250px;
    height: 250px;
    bottom: -6%;
    left: -4%;
    background: rgba(59, 130, 246, 0.25);
    animation-delay: 2.5s;
}

.auth-particle.p3 {
    width: 180px;
    height: 180px;
    top: 45%;
    right: 20%;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: 5s;
}

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

.auth-brand-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 420px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.auth-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.auth-brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-brand-name span {
    color: #a5b4fc;
}

.auth-brand-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.auth-brand-content > p {
    font-size: 1rem;
    opacity: 0.65;
    margin-bottom: 44px;
    line-height: 1.6;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    opacity: 0.8;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #a5b4fc;
    flex-shrink: 0;
}

/* ===== 右侧表单区 ===== */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #f0f2f5;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-form-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f2b4d;
    margin-bottom: 6px;
}

.auth-form-sub {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.auth-form-wrapper .form-group {
    margin-bottom: 20px;
}

.auth-form-wrapper .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.auth-form-wrapper .form-group label i {
    color: #6366f1;
    font-size: 0.8rem;
}

.auth-form-wrapper .form-group input {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.92rem;
    transition: all 0.25s;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
    color: #1e293b;
}

.auth-form-wrapper .form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    outline: none;
    background: white;
}

.auth-form-wrapper .form-group input::placeholder {
    color: #94a3b8;
}

/* 记住我复选框 */
.auth-remember-row {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    user-select: none;
}

.auth-checkbox input[type="checkbox"] {
    display: none;
}

.auth-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.auth-checkbox input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
}

.auth-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 提交按钮 */
.btn-form-submit {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    margin-top: 4px;
}

.btn-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-form-submit:active {
    transform: translateY(0);
}

/* 链接区 */
.auth-form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.auth-form-links a {
    color: #6366f1;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-form-links a:hover {
    color: #4f46e5;
}

.auth-form-links a i {
    font-size: 0.75rem;
}

/* 底部返回首页 */
.auth-form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.auth-form-footer a {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-form-footer a:hover {
    color: #6366f1;
}

/* 提示框 */
.alert-info-custom {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success-custom {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .auth-page { flex-direction: column; }
    .auth-brand { width: 100%; min-height: 240px; padding: 32px; }
    .auth-brand-content h2 { font-size: 1.6rem; }
    .auth-brand-features { display: none; }
    .auth-form-side { padding: 24px 16px; }
    .auth-form-wrapper { padding: 28px 24px; }
    .auth-particles { display: none; }
}
