.auth {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(var(--sp-6), 4vw, var(--sp-8));
    overflow: hidden;
    color: #FFFFFF;
    background:
        radial-gradient(680px 420px at 88% 4%, rgba(255, 255, 255, .1), transparent 60%),
        radial-gradient(560px 420px at 6% 96%, rgba(15, 122, 93, .45), transparent 62%),
        linear-gradient(200deg, var(--brand-600) 0%, var(--brand-700) 58%, #063F4B 100%);
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 70% 40%, #000, transparent 76%);
    pointer-events: none;
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset-block-end: -180px;
    inset-inline-start: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .06);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

/* shell.css is not loaded here, so the shared brand mark is laid out again. */
.auth-brand .brand-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.auth-brand .brand-mark svg {
    width: 25px;
    height: 25px;
}

.auth-aside .eyebrow {
    color: rgba(255, 255, 255, .9);
}

.auth-lead {
    position: relative;
    max-width: 30ch;
    margin-block: clamp(var(--sp-6), 6vh, var(--sp-8));
}

.auth-lead h1 {
    margin: var(--sp-4) 0 var(--sp-4);
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -.02em;
    color: #fff;
}

.auth-lead h1 em {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 18px rgba(7, 36, 48, .18);
}

.auth-lead p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: var(--fs-sm);
    line-height: 2;
}

.auth-points {
    position: relative;
    display: grid;
    gap: var(--sp-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: rgba(255, 255, 255, .9);
    font-size: var(--fs-sm);
}

.auth-points svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #FFFFFF;
}

.auth-aside-foot {
    position: relative;
    font-size: var(--fs-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(var(--sp-5), 4vw, var(--sp-8)) clamp(var(--sp-4), 4vw, var(--sp-8));
    background: var(--canvas);
}

.auth-brand .brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.auth-brand .brand-tag {
    display: block;
    font-size: var(--fs-xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

/* Language switch in the corner of the sign-in panel. */
.auth-panel {
    position: relative;
}

.auth-lang {
    position: absolute;
    inset-block-start: var(--sp-5);
    inset-inline-end: var(--sp-5);
}

.auth-lang .lang-form {
    margin: 0;
}

.auth-lang .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding-inline: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.auth-lang .lang-btn:hover {
    color: var(--brand-500);
    border-color: var(--line-brand);
}

.auth-lang .lang-btn svg {
    width: 18px;
    height: 18px;
}

.auth-card {
    width: 100%;
    max-width: 424px;
}

.auth-head {
    margin-bottom: var(--sp-6);
}

.auth-head h2 {
    margin: var(--sp-2) 0 var(--sp-2);
    font-size: var(--fs-2xl);
    font-weight: 600;
}

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

.auth-form {
    display: grid;
    gap: var(--sp-5);
}

.auth-form .btn-primary {
    min-height: 50px;
    width: 100%;
    font-size: var(--fs-base);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

.auth-foot {
    margin-top: var(--sp-6);
    text-align: center;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    letter-spacing: .06em;
}

@media (max-width: 991.98px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: var(--sp-5) var(--sp-5) var(--sp-6);
    }

    .auth-lead {
        max-width: none;
        margin-block: var(--sp-5) var(--sp-5);
    }

    .auth-points,
    .auth-aside-foot {
        display: none;
    }

    .auth-aside::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-lead h1 {
        margin-bottom: var(--sp-3);
    }

    .auth-lead p {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .auth-panel {
        padding-top: calc(var(--sp-5) + 56px);
    }
}
