/* =========================================================
   SILVEROAK AUTH
========================================================= */

.auth-body {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.auth-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(500px, .95fr);
    min-height: 100vh;
}


/* =========================================================
   LEFT IMAGE PANEL
========================================================= */

.auth-brand {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 54px 30px;
    isolation: isolate;
}


/* ---------------------------------------------------------
   Background image
--------------------------------------------------------- */

.brand-background {
    position: absolute;
    inset: 0;
    z-index: -3;

    background-image:
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=85");

    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}


/* ---------------------------------------------------------
   Image overlay
--------------------------------------------------------- */

.brand-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            135deg,
            rgba(3, 28, 20, .96) 0%,
            rgba(5, 54, 37, .87) 38%,
            rgba(5, 58, 40, .68) 70%,
            rgba(1, 22, 15, .90) 100%
        );
}


/* ---------------------------------------------------------
   Decorative lighting
--------------------------------------------------------- */

.brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.brand-glow-one {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -120px;
    background: rgba(159, 207, 181, .13);
}

.brand-glow-two {
    width: 500px;
    height: 500px;
    bottom: -280px;
    left: -220px;
    background: rgba(16, 126, 82, .18);
}


/* =========================================================
   BRAND CONTENT
========================================================= */

.brand-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 8px 30px rgba(0,0,0,.15);
}

.brand-logo span {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.6px;
}

.brand-logo small {
    display: block;
    margin-top: 4px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;

    color: rgba(218,238,227,.72);
}


/* =========================================================
   HERO
========================================================= */

.brand-hero {
    max-width: 540px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 80px 0 60px;
}


/* eyebrow */

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    color: rgba(255,255,255,.72);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5e5d3;

    box-shadow:
        0 0 0 5px rgba(197,229,211,.10),
        0 0 16px rgba(197,229,211,.35);
}


/* heading */

.brand-hero h1 {
    max-width: 540px;

    margin: 0 0 20px;

    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.08;

    font-weight: 800;
    letter-spacing: -2.2px;

    color: #fff;

    text-shadow:
        0 3px 25px rgba(0,0,0,.20);
}


/* paragraph */

.brand-hero > p {
    max-width: 470px;

    margin: 0 0 38px;

    font-size: 15px;
    line-height: 1.75;

    color: rgba(255,255,255,.72);
}


/* =========================================================
   SECURITY FEATURES
========================================================= */

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

.brand-feat {
    display: flex;
    align-items: center;
    gap: 14px;

    width: min(440px, 100%);

    padding: 13px 15px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;

    background: rgba(255,255,255,.065);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.brand-feat:hover {
    transform: translateX(5px);

    background: rgba(255,255,255,.10);

    border-color: rgba(255,255,255,.18);
}


/* icon */

.feat-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(215,238,225,.12);

    border: 1px solid rgba(215,238,225,.12);
}

.feat-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: #d8eee1;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* text */

.brand-feat b {
    display: block;

    margin-bottom: 2px;

    font-size: 13px;
    font-weight: 700;

    color: #fff;
}

.brand-feat span {
    display: block;

    font-size: 11px;
    line-height: 1.45;

    color: rgba(255,255,255,.58);
}


/* =========================================================
   TRUST BAR
========================================================= */

.brand-trust {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-top: 30px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trust-item strong {
    font-size: 12px;
    font-weight: 700;

    color: rgba(255,255,255,.88);
}

.trust-item span {
    font-size: 9px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 1.2px;

    color: rgba(255,255,255,.42);
}

.trust-divider {
    width: 1px;
    height: 25px;

    background: rgba(255,255,255,.15);
}


/* =========================================================
   BRAND FOOTER
========================================================= */

.brand-footer {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    font-size: 10px;
    line-height: 1.5;

    color: rgba(255,255,255,.42);
}


/* =========================================================
   RIGHT AUTH PANEL
========================================================= */

.auth-panel {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 48px 30px;

    background: var(--bg);
}

.auth-panel-inner {
    width: 100%;
    max-width: 450px;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: 100%;

    background: var(--cd);

    border: 1px solid var(--ln);
    border-radius: 22px;

    box-shadow:
        0 20px 70px rgba(0,0,0,.08);

    padding: 38px 36px;

    animation: authUp .5s both;
}

@keyframes authUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   CARD TYPOGRAPHY
========================================================= */

.auth-card h1 {
    margin: 0 0 7px;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: -.7px;
}

.auth-card .sub {
    margin-bottom: 30px;

    color: var(--mu);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 18px;

    text-align: center;

    font-size: 10px;
    color: var(--mu);
}

.security-lock {
    font-size: 14px;
    opacity: .7;
}


/* =========================================================
   FORM META
========================================================= */

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    font-size: 13px;
}

.auth-meta .remember {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    font-weight: 500;
    cursor: pointer;
}

.auth-meta .remember input {
    width: auto;
    margin: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.auth-footer {
    margin-top: 18px;

    text-align: center;

    font-size: 13px;
    color: var(--mu);
}


/* =========================================================
   DIVIDER
========================================================= */

.divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 24px 0;

    color: var(--mu);

    font-size: 11px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';

    flex: 1;

    height: 1px;

    background: var(--ln);
}


/* =========================================================
   CHANNEL BUTTONS
========================================================= */

.channel-btns {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-bottom: 20px;
}

.channel-btns.two {
    grid-template-columns: 1fr 1fr;
}

.ch-btn {
    display: block;

    padding: 13px 8px;

    border: 1.5px solid var(--ln);
    border-radius: 12px;

    background: var(--cd);

    color: var(--ink);

    text-align: center;
    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        .2s ease;
}

.ch-btn:hover {
    border-color: var(--ac);
    background: var(--gl);

    transform: translateY(-1px);
}

.ch-btn.on {
    border-color: var(--ac);
    background: var(--gl);

    box-shadow:
        0 0 0 3px var(--gl);
}

.ch-btn span {
    display: block;

    margin-bottom: 5px;

    font-size: 20px;
}


/* =========================================================
   OTP
========================================================= */

.otp-row {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin: 20px 0;
}

.otp-row input {
    width: 48px;
    height: 56px;

    padding: 0;

    text-align: center;

    font-size: 22px;
    font-weight: 700;

    border-radius: 12px;
}


/* =========================================================
   ALERTS
========================================================= */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;

    margin-bottom: 20px;

    border-radius: 12px;

    font-size: 13.5px;

    animation: authUp .4s both;
}

.alert.err {
    background: rgba(192,57,43,.08);
    border: 1px solid var(--er);
    color: var(--er);
}

.alert.warn {
    background: var(--wb);
    border: 1px solid var(--wn);
    color: var(--wn);
}

.alert.ok {
    background: var(--gl);
    border: 1px solid var(--ac);
    color: var(--ac);
}

.alert.info {
    background: var(--bg);
    border: 1px solid var(--ln);
    color: var(--mu);
}

.alert b {
    display: block;

    margin-bottom: 2px;

    font-size: 14px;
}

.alert .ico {
    flex-shrink: 0;

    margin-top: 1px;

    font-size: 18px;
}


/* =========================================================
   BACK LINK
========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 20px;

    color: var(--mu);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.back-link:hover {
    color: var(--ink);
}


/* =========================================================
   RESEND
========================================================= */

.resend {
    margin-top: 16px;

    text-align: center;

    font-size: 13px;
    color: var(--mu);
}

.resend button {
    border: 0;
    background: none;

    color: var(--ac);

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   PASSWORD
========================================================= */

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 48px;
}

.pw-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    padding: 4px;

    border: 0;
    background: none;

    color: var(--mu);

    cursor: pointer;

    font-size: 16px;
}

.pw-toggle:hover {
    color: var(--ink);
}


/* =========================================================
   THEME BUTTON
========================================================= */

.theme-btn {
    position: fixed;

    top: 20px;
    right: 20px;

    z-index: 100;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;

    background: rgba(255,255,255,.10);

    color: inherit;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 30px rgba(0,0,0,.12);

    cursor: pointer;

    font-size: 17px;

    transition: .2s ease;
}

.theme-btn:hover {
    transform: scale(1.08);
}


/* =========================================================
   STEPS
========================================================= */

.steps {
    display: flex;
    gap: 6px;

    margin-bottom: 28px;
}

.steps .s {
    flex: 1;

    height: 4px;

    border-radius: 4px;

    background: var(--ln);

    transition: .4s;
}

.steps .s.on {
    background: var(--ac);
}

.steps .s.done {
    background: var(--g);
}


/* =========================================================
   SSN
========================================================= */

.ssn-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ssn-wrap input {
    text-align: center;
    letter-spacing: 2px;
}

.ssn-wrap span {
    color: var(--mu);
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .auth-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr);
    }

    .auth-brand {
        padding-left: 40px;
        padding-right: 40px;
    }

    .brand-hero h1 {
        font-size: 44px;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .auth-wrap {
        display: block;
    }

    .auth-brand {
        min-height: 230px;

        padding: 28px 24px;

        justify-content: flex-start;
    }

    .brand-content {
        min-height: auto;
    }

    .brand-background {
        background-position: center 35%;
    }

    .brand-hero {
        display: none;
    }

    .brand-trust {
        display: none;
    }

    .brand-footer {
        display: none;
    }

    .brand-logo {
        position: relative;
        z-index: 2;
    }

    .auth-panel {
        min-height: calc(100vh - 230px);

        padding: 30px 16px 48px;
    }

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

    .auth-security-note {
        padding-bottom: 10px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .auth-brand {
        min-height: 190px;
    }

    .brand-logo span {
        font-size: 19px;
    }

    .brand-logo-mark {
        width: 40px;
        height: 40px;
    }

    .auth-panel {
        min-height: calc(100vh - 190px);

        padding: 20px 14px 40px;
    }

    .auth-card {
        padding: 27px 20px;

        border-radius: 18px;
    }

    .auth-card h1 {
        font-size: 25px;
    }

    .channel-btns,
    .channel-btns.two {
        grid-template-columns: 1fr;
    }

    .otp-row {
        gap: 7px;
    }

    .otp-row input {
        width: 43px;
        height: 52px;
    }

    .theme-btn {
        top: 15px;
        right: 15px;

        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}