.auth-view {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #1d382f;
}

.auth-scenery {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgb(15 35 29 / 84%) 0%, rgb(15 35 29 / 58%) 45%, rgb(15 35 29 / 25%) 72%, rgb(15 35 29 / 44%) 100%),
        linear-gradient(0deg, rgb(8 21 17 / 48%) 0%, transparent 40%),
        url("../images/auth-hero-realistic.webp");
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
}

.auth-scenery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(13 31 26 / 18%), transparent 32%, rgb(10 24 20 / 24%));
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: start;
    padding-block: clamp(1.25rem, 3.5vh, 2.5rem);
}

.welcome-panel {
    display: flex;
    min-height: calc(100vh - 5rem);
    flex-direction: column;
    align-items: flex-start;
}

.brand-light {
    padding: .25rem .75rem .25rem .3rem;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--radius-pill);
    background: rgb(11 31 25 / 32%);
    backdrop-filter: blur(10px);
}

.welcome-copy {
    max-width: 650px;
    margin-top: clamp(2.5rem, 8vh, 5.25rem);
    text-shadow: 0 2px 18px rgb(0 0 0 / 26%);
}

.welcome-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    color: #f0d8a1;
    letter-spacing: .09em;
}

.welcome-copy .eyebrow::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.welcome-copy h1 {
    max-width: 620px;
    margin-bottom: 1.1rem;
    color: #fff;
    font-size: clamp(2.65rem, 4.7vw, 4.85rem);
    letter-spacing: -.045em;
    text-wrap: balance;
}

.welcome-copy h1 span { color: #f1d69a; }

.welcome-copy > p:not(.eyebrow) {
    max-width: 570px;
    color: rgb(255 255 255 / 82%);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.68;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.feature-pills li {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .58rem .85rem;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: var(--radius-pill);
    background: rgb(12 33 27 / 42%);
    color: #fff;
    font-size: .84rem;
    font-weight: 650;
    backdrop-filter: blur(10px);
}

.feature-pills li::before {
    content: "";
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: #e3c178;
    box-shadow: 0 0 0 3px rgb(227 193 120 / 16%);
}

.auth-card-wrap {
    width: 100%;
    max-width: 500px;
    justify-self: end;
    margin-top: clamp(.5rem, 4vh, 2.75rem);
}

.auth-card {
    max-height: calc(100vh - 6rem);
    padding: clamp(1.3rem, 3vw, 2.15rem);
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 72%);
    background: rgb(255 253 248 / 94%);
    box-shadow: 0 28px 80px rgb(4 18 14 / 36%);
    scrollbar-width: thin;
    backdrop-filter: blur(18px) saturate(115%);
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1rem;
    color: var(--color-teal-900);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
    margin-bottom: 1.65rem;
    padding: .3rem;
    border: 1px solid #dde5dc;
    border-radius: .9rem;
    background: #edf1eb;
}

.auth-tab {
    padding: .68rem .6rem;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-weight: 800;
}

.auth-tab.is-active {
    background: #fff;
    color: #285f50;
    box-shadow: 0 3px 12px rgb(35 72 59 / 10%);
}

.auth-heading { display: flex; gap: .9rem; margin-bottom: 1.35rem; }
.auth-heading h2 { margin: 0 0 .3rem; font-size: clamp(1.55rem, 3vw, 1.95rem); }
.auth-heading p { margin: 0; font-size: .9rem; }

.heading-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dfd3b7;
    border-radius: 50%;
    background: #f5ecd8;
    color: #735f37;
    font-size: 1.18rem;
}

.auth-form { display: grid; gap: .85rem; }
.auth-note { margin: .85rem auto 0; color: rgb(255 255 255 / 74%); font-size: .75rem; text-align: center; text-shadow: 0 1px 6px rgb(0 0 0 / 50%); }

@media (max-width: 900px) {
    .auth-scenery { background-position: 42% center; }
    .auth-layout { grid-template-columns: 1fr; justify-items: center; padding-block: 1.25rem; }
    .welcome-panel { position: absolute; inset: 0; min-height: 0; padding: 1rem; }
    .welcome-panel > .brand, .welcome-copy { display: none; }
    .auth-card-wrap { max-width: 500px; justify-self: center; margin-top: clamp(.25rem, 3vh, 1.5rem); }
    .auth-mobile-brand { display: flex; }
    .auth-card { max-height: calc(100vh - 4.5rem); }
}

@media (max-width: 520px) {
    .auth-scenery {
        background-image: linear-gradient(rgb(19 46 38 / 78%), rgb(19 46 38 / 82%)), url("../images/auth-hero-realistic.webp");
        background-position: 45% center;
    }
    .auth-layout { width: 100%; padding: .75rem; }
    .auth-card-wrap { max-width: none; margin: 0; }
    .auth-card { max-height: calc(100vh - 2.25rem); border-radius: 1.35rem; padding: 1.15rem; }
    .auth-note { display: none; }
    .auth-mobile-brand { margin-top: .1rem; }
    .auth-tabs { margin-bottom: 1.15rem; }
}
