/**
 * Learn Bit - Auth Pages Styles (Redesigned)
 * New pattern: asymmetric 2-col split — form left, decorative panel right
 */

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.auth-form-side {
    padding: 48px 40px;
}

.auth-decor-side {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(192, 132, 252, 0.06) 50%, rgba(244, 114, 182, 0.04) 100%);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
}

.auth-decor-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.auth-decor-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-decor-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-decor-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-decor-features li span:first-child {
    font-size: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.auth-form .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-form .form-group input[type="text"]:focus,
.auth-form .form-group input[type="email"]:focus,
.auth-form .form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-form .form-group input::placeholder {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
}

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

/* Referral Welcome */
.referral-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.referral-welcome span:first-child {
    font-size: 2rem;
}

.referral-welcome strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.referral-welcome p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.referral-welcome .bonus {
    color: #10b981;
    font-weight: 600;
}

/* Forgot Password Link */
.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-password-link:hover {
    color: var(--accent);
}

/* Success/Error Icons */
.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.success-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    color: var(--accent);
}

/* Light Theme */
[data-theme="light"] .auth-split {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-decor-side {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(192, 132, 252, 0.03) 50%, rgba(244, 114, 182, 0.02) 100%);
}

[data-theme="light"] .auth-form .form-group input[type="text"],
[data-theme="light"] .auth-form .form-group input[type="email"],
[data-theme="light"] .auth-form .form-group input[type="password"] {
    background: #f5f6fa;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .referral-welcome {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .success-icon {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .error-icon {
    background: rgba(239, 68, 68, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 100px 16px 60px;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-decor-side {
        display: none;
    }

    .auth-form-side {
        padding: 32px 24px;
    }

    .auth-card {
        padding: 24px;
    }
}
