/* =========================================================
   SOPRANO MAFIA — AUTH SCREEN / STAGE 1H
   Login-only visual layer. OAuth and session logic remain in PHP.
========================================================= */

.auth-stage {
    position: relative;
    display: grid;
    min-height: min(820px, calc(100svh - 94px));
    align-items: center;
    padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 112px);
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 72% 40%, rgba(92, 39, 31, .19), transparent 46%),
        linear-gradient(180deg, #11100f 0%, #151210 100%);
}
.auth-stage::before,
.auth-stage::after {
    position: absolute;
    z-index: -1;
    width: min(54vw, 720px);
    aspect-ratio: 1;
    border: 1px solid rgba(194,164,119,.055);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.auth-stage::before { top: -42%; right: -18%; }
.auth-stage::after { right: -25%; bottom: -58%; width: min(68vw, 900px); }
.auth-stage__shell {
    display: grid;
    width: min(1240px, calc(100% - 88px));
    min-height: 590px;
    grid-template-columns: minmax(0, 1.08fr) minmax(370px, .78fr);
    align-items: stretch;
    margin-inline: auto;
    border: 1px solid rgba(230,218,202,.12);
    background: rgba(22,19,17,.72);
    box-shadow: 0 28px 90px rgba(0,0,0,.28);
}
.auth-intro {
    position: relative;
    display: flex;
    min-height: 590px;
    align-items: flex-end;
    overflow: hidden;
    padding: clamp(34px, 5vw, 72px);
    isolation: isolate;
    background: #120f0e;
}
.auth-intro__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("../images/battle-pass/soprano-mafia-hero.png");
    background-position: 56% center;
    background-size: cover;
    opacity: .52;
    transform: scale(1.015);
}
.auth-intro::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,13,12,.92) 0%, rgba(15,13,12,.68) 54%, rgba(15,13,12,.2) 100%),
        linear-gradient(0deg, rgba(15,13,12,.92) 0%, rgba(15,13,12,.06) 80%);
    content: "";
}
.auth-intro__content { position: relative; width: min(100%, 550px); }
.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 24px;
    color: var(--home-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .24em;
}
.auth-eyebrow span { width: 24px; height: 1px; background: var(--home-accent); }
.auth-intro h1 {
    max-width: 600px;
    margin: 0;
    color: #f3eee7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 5.3vw, 76px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .98;
}
.auth-intro h1 em { color: var(--home-gold-soft); font-weight: 400; }
.auth-intro__lead {
    max-width: 430px;
    margin: 25px 0 0;
    color: #c0b7ad;
    font-size: 13px;
    line-height: 1.85;
}
.auth-intro__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
    color: #9d8e7d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .22em;
}
.auth-intro__crest {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(194,164,119,.65);
    border-radius: 50%;
    color: var(--home-gold-soft);
    font-family: Georgia, serif;
    font-size: 13px;
}
.auth-panel-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4.4vw, 62px);
    background: #171412;
}
.auth-panel { width: 100%; max-width: 410px; margin-inline: auto; }
.auth-panel__kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 30px;
    color: var(--home-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .19em;
}
.auth-panel__kicker span { color: #74695e; font-size: 8px; letter-spacing: .12em; }
.auth-panel h2 {
    margin: 0;
    color: #f0e8dd;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 3.5vw, 48px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.05;
}
.auth-panel__description { margin: 15px 0 29px; color: #a99f94; font-size: 12px; line-height: 1.8; }
.auth-vk-button { min-height: 60px !important; gap: 13px !important; justify-content: flex-start !important; padding-inline: 17px !important; text-align: left !important; }
.auth-vk-button__mark {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(23,18,14,.26);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: -.06em;
}
.auth-vk-button__arrow { margin-left: auto; font-size: 17px; }
.auth-secure-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 19px;
    padding: 15px 0 20px;
    border-bottom: 1px solid rgba(230,218,202,.1);
    color: #9d9489;
    font-size: 10px;
    line-height: 1.65;
}
.auth-secure-note strong { color: #d7c8b3; font-size: 10px; font-weight: 700; }
.auth-secure-note__icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(194,164,119,.34); color: var(--home-gold); font-size: 16px; }
.auth-panel__divider { display: flex; align-items: center; gap: 12px; margin-top: 25px; color: #81766a; font-size: 8px; font-weight: 800; letter-spacing: .17em; white-space: nowrap; }
.auth-panel__divider::before,
.auth-panel__divider::after { height: 1px; flex: 1; background: rgba(230,218,202,.11); content: ""; }
.auth-panel__new-user { margin: 13px 0 26px; color: #a99f94; font-size: 11px; line-height: 1.8; }
.auth-panel__back { color: #d5bd97 !important; }
.auth-panel-caption { margin: 24px auto 0; color: #786d62; font-size: 8px; font-weight: 800; letter-spacing: .2em; text-align: center; }
.auth-panel-caption span { padding-inline: 6px; color: var(--home-accent-bright); }
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 20px;
    padding: 13px 14px;
    border: 1px solid rgba(202,113,102,.38);
    background: rgba(136,49,43,.13);
    color: #e0aaa1;
    font-size: 11px;
    line-height: 1.65;
}
.auth-alert__mark { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(202,113,102,.5); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; }

@media (max-width: 980px) {
    .auth-stage { min-height: auto; padding-block: 48px 68px; }
    .auth-stage__shell { width: min(720px, calc(100% - 48px)); grid-template-columns: 1fr; }
    .auth-intro { min-height: 360px; padding: 42px; }
    .auth-intro__image { background-position: 58% 44%; }
    .auth-intro h1 { font-size: clamp(43px, 8vw, 62px); }
    .auth-panel-wrap { padding: 42px; }
    .auth-panel { max-width: 520px; }
}
@media (max-width: 600px) {
    .auth-stage { padding-block: 24px 42px; }
    .auth-stage__shell { width: calc(100% - 28px); }
    .auth-intro { min-height: 300px; padding: 29px 24px; }
    .auth-eyebrow { margin-bottom: 18px; font-size: 8px; }
    .auth-intro h1 { font-size: clamp(39px, 10vw, 52px); }
    .auth-intro__lead { max-width: 330px; margin-top: 17px; font-size: 11px; line-height: 1.7; }
    .auth-intro__foot { margin-top: 25px; font-size: 7px; }
    .auth-intro__crest { width: 34px; height: 34px; font-size: 11px; }
    .auth-panel-wrap { padding: 32px 24px 28px; }
    .auth-panel__kicker { margin-bottom: 22px; font-size: 8px; }
    .auth-panel h2 { font-size: 38px; }
    .auth-panel__description { margin-block: 12px 23px; }
    .auth-vk-button { min-height: 56px !important; }
    .auth-panel-caption { margin-top: 18px; }
}
@media (max-width: 360px) {
    .auth-stage__shell { width: calc(100% - 20px); }
    .auth-intro { min-height: 280px; padding: 25px 19px; }
    .auth-panel-wrap { padding-inline: 19px; }
    .auth-panel__kicker span { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-stage *, .auth-stage *::before, .auth-stage *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
