/* ---------- Layout ---------- */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 5fr) 7fr;
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 56px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 110% -10%, rgba(240, 165, 0, 0.28), transparent 45%),
        radial-gradient(circle at -20% 110%, rgba(255, 255, 255, 0.08), transparent 50%),
        linear-gradient(160deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
}

.auth-brand::after {
    /* oversized watermark of the bank emblem */
    content: '';
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 460px;
    height: 460px;
    background: url('../../images/logo.png') center / contain no-repeat;
    opacity: 0.07;
    filter: grayscale(1) brightness(3);
    pointer-events: none;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-mark img {
    width: 48px;
    height: 48px;
    padding: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--accent);
}

.brand-copy h1 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.brand-copy h1 span {
    color: var(--accent);
}

.brand-copy > p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
}

.brand-points {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.brand-points .icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.brand-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Form panel ---------- */

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    animation: rise 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-card.wide {
    max-width: 520px;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.auth-head {
    margin-bottom: 28px;
}

.mobile-logo {
    display: none;
}

.auth-head h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-head p {
    margin: 0;
    color: var(--text-muted);
}

.auth-head strong {
    color: var(--text);
}

.auth-alt {
    margin: 26px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

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

.back-link .icon {
    width: 16px;
    height: 16px;
}

.divider {
    height: 1px;
    margin: 4px 0;
    background: var(--border);
}

.resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        align-items: flex-start;
        padding: 40px 16px;
        background:
            radial-gradient(circle at 50% -30%, var(--primary-glow), transparent 60%),
            var(--bg);
    }

    .auth-card {
        padding: 28px 22px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }

    .mobile-logo {
        display: block;
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-head h2 {
        font-size: 26px;
    }
}


.auth-switch {
    margin: -8px 0 20px;
    font-size: 14px;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-switch .icon {
    width: 16px;
    height: 16px;
}

.auth-alt-small {
    margin-top: 10px;
    font-size: 13px;
}
