/* ===================================
   Auth Pages - Login & Register
   =================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    min-height: 680px;
    margin: 24px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

/* ---- Branding Panel ---- */
.auth-branding {
    background: linear-gradient(135deg, #1a0533 0%, #0f0a1e 50%, #150d28 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-branding .logo {
    margin-bottom: 48px;
}

.branding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branding-content h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.branding-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.branding-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.branding-feature:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.2rem;
}

.branding-decoration {
    position: absolute;
    bottom: -60px;
    right: -60px;
    pointer-events: none;
}

.deco-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.15);
    position: absolute;
    bottom: 0;
    right: 0;
    animation: pulse 4s ease-in-out infinite;
}

.deco-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    border-color: rgba(124, 58, 237, 0.08);
    animation-delay: 1s;
}

/* ---- Auth Forms Panel ---- */
.auth-forms {
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

.auth-form-wrapper.hidden {
    display: none;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Form Groups ---- */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: var(--transition);
    padding: 4px;
}

.toggle-password:hover {
    opacity: 1;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---- Password Strength ---- */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 50px;
}

/* ---- Auth Options ---- */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--accent-tertiary);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--accent-secondary);
}

.terms-label {
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.terms-label a {
    color: var(--accent-tertiary);
    font-weight: 500;
}

/* ---- Auth Button ---- */
.auth-btn {
    padding: 15px;
    font-size: 1rem;
    margin-bottom: 0;
}

.auth-btn:active {
    transform: scale(0.98);
}

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ---- Social Auth ---- */
.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.social-auth-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ---- Auth Switch ---- */
.auth-switch {
    text-align: center;
    margin-top: 24px;
}

.auth-switch p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-tertiary);
    font-weight: 600;
    transition: var(--transition);
}

.auth-switch a:hover {
    color: var(--accent-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 16px;
    }

    .auth-branding {
        display: none;
    }

    .auth-forms {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-social {
        grid-template-columns: 1fr;
    }

    .auth-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}