﻿/* ═══════════════════════════════════════════════════════════════
   auth-layout.css
   Shared layout primitives for all authentication pages.
   Login, Register, ForgotPassword, ResetPassword etc.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shell ──────────────────────────────────────────────────── */
.auth-shell {
    position: fixed;
    inset: 0;
    display: flex;
    overflow: hidden;
    background: var(--mud-palette-background);
}

/* ── Brand panel (left) ─────────────────────────────────────── */
.auth-brand {
    display: none; /* mobile: hidden */
    flex-direction: column;
    width: 42%;
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #1A56C4 0%, #0D3B8E 100%);
}

    /* Orange accent bar — "LAG" color */
    .auth-brand::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #E8820C, #F5A623);
    }

    /* Subtle circle watermark */
    .auth-brand::after {
        content: '';
        position: absolute;
        bottom: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        border: 40px solid rgba(255,255,255,.05);
        pointer-events: none;
    }

.auth-brand__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.auth-brand__logo {
    max-height: 72px;
    max-width: 220px;
    object-fit: contain;
}

.auth-brand__name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

    .auth-brand__name span {
        color: #F5A623;
    }

.auth-brand__slogan {
    font-size: .9rem;
    opacity: .75;
    letter-spacing: .01em;
}

/* Pill badges — e.g. Save · Invest · Borrow · Buy */
.auth-brand__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.auth-brand__pill {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
}

.auth-brand__footer {
    font-size: .7rem;
    opacity: .45;
    letter-spacing: .1em;
    text-transform: uppercase;
    flex-shrink: 0;
    padding-top: 1.5rem;
}

/* ── Form panel (right) ─────────────────────────────────────── */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #FAFBFF;
}

.auth-panel__inner {
    width: 100%;
    max-width: 400px;
}

/* ── Mobile logo ────────────────────────────────────────────── */
.auth-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

    .auth-mobile-logo img {
        max-height: 56px;
        max-width: 180px;
        object-fit: contain;
    }

/* ── Typography ─────────────────────────────────────────────── */
.auth-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--mud-palette-text-primary);
    margin: 0 0 .25rem;
}

.auth-subheading {
    font-size: .9rem;
    color: var(--mud-palette-text-secondary);
    margin: 0 0 2rem;
}

/* ── Form primitives ────────────────────────────────────────── */
.auth-field {
    margin-bottom: 1rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .25rem 0 1rem;
}

.auth-alert {
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Submit button — orange accent */
.auth-submit.mud-button-root {
    height: 48px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #E8820C, #F5A623) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(232,130,12,.35) !important;
    transition: box-shadow .2s, transform .1s;
}

    .auth-submit.mud-button-root:hover {
        box-shadow: 0 6px 20px rgba(232,130,12,.45) !important;
        transform: translateY(-1px);
    }

.auth-footer-text {
    text-align: center;
    font-size: .85rem;
    color: var(--mud-palette-text-secondary);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 768px) {
    .auth-brand {
        display: flex;
    }

    .auth-mobile-logo {
        display: none;
    }
}

@media (max-width: 767px) {
    .auth-panel {
        padding: 2.5rem 1.25rem;
    }
}
