/* ==========================================================================
   VisualAds – Auth pages (login / signup / forgot)
   Day & night theme. Loaded only on the auth pages (body.login).
   ========================================================================== */

/* ---------- tokens: light (default) ---------- */
:root {
    --ground: #FFFFFF;
    --panel: #F6F5F1;
    --card: #FFFFFF;
    --ink: #1C1B19;
    --ink-2: #3A3936;
    --muted: #6E6C66;
    --line: #E4E2DB;
    --line-strong: #CFCDC4;
    --accent: #FBBC04;
    --accent-deep: #E0A400;
    --accent-soft: #FFF4CC;
    --btn: #232220;
    --btn-hover: #000000;
    --btn-ink: #FFFFFF;
    --sec-bg: var(--accent);
    --sec-ink: #232220;
    --input: #FFFFFF;
    --focus: rgba(251, 188, 4, .22);
    --danger: #E5484D;
    --ok: #2E9E6B;
    --side: #1B1A18;
    --side-2: #2A2825;
    --shadow: 0 1px 2px rgba(20, 18, 10, .05), 0 12px 32px -16px rgba(20, 18, 10, .18);
    --f-tile: #FFFFFF;
    --f-tile-line: transparent;
    --alert-ok-bg: #E9F7EF;
    --alert-ok-ink: #1E7A4F;
    --alert-err-bg: #FDECEC;
    --alert-err-ink: #B12222;
}

/* ---------- tokens: dark by system preference (unless user chose light) ---------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ground: #0D0E10;
        --panel: #15171B;
        --card: #15171B;
        --ink: #F1EFE8;
        --ink-2: #D5D3CC;
        --muted: #9C9A92;
        --line: #272A30;
        --line-strong: #353941;
        --accent: #FBBC04;
        --accent-deep: #FFCB3D;
        --accent-soft: rgba(251, 188, 4, .12);
        --btn: #FBBC04;
        --btn-hover: #FFCB3D;
        --btn-ink: #1C1B19;
        --sec-bg: transparent;
        --sec-ink: #F1EFE8;
        --input: #0F1013;
        --focus: rgba(251, 188, 4, .18);
        --side: #0A0B0D;
        --side-2: #14161A;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .7);
        --f-tile: rgba(255, 255, 255, .06);
        --f-tile-line: rgba(255, 255, 255, .12);
        --alert-ok-bg: rgba(46, 158, 107, .14);
        --alert-ok-ink: #6FD3A0;
        --alert-err-bg: rgba(229, 72, 77, .14);
        --alert-err-ink: #FF8A8E;
    }
}

/* ---------- tokens: dark by explicit choice ---------- */
:root[data-theme="dark"] {
    --ground: #0D0E10;
    --panel: #15171B;
    --card: #15171B;
    --ink: #F1EFE8;
    --ink-2: #D5D3CC;
    --muted: #9C9A92;
    --line: #272A30;
    --line-strong: #353941;
    --accent: #FBBC04;
    --accent-deep: #FFCB3D;
    --accent-soft: rgba(251, 188, 4, .12);
    --btn: #FBBC04;
    --btn-hover: #FFCB3D;
    --btn-ink: #1C1B19;
    --sec-bg: transparent;
    --sec-ink: #F1EFE8;
    --input: #0F1013;
    --focus: rgba(251, 188, 4, .18);
    --side: #0A0B0D;
    --side-2: #14161A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .7);
    --f-tile: rgba(255, 255, 255, .06);
    --f-tile-line: rgba(255, 255, 255, .12);
    --alert-ok-bg: rgba(46, 158, 107, .14);
    --alert-ok-ink: #6FD3A0;
    --alert-err-bg: rgba(229, 72, 77, .14);
    --alert-err-ink: #FF8A8E;
}

/* ---------- page ground ---------- */
body.login {
    background: var(--ground);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header (keeps the current structure, themed)
   ========================================================================== */
body.login .h_site {
    background: var(--side);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    position: relative;
}
body.login .h_site::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 60%);
    opacity: .6;
    pointer-events: none;
}
body.login .h_site.sticky_top {
    background: var(--side);
}
body.login .navs_head li a.active {
    border-bottom: 1.5px solid var(--accent);
    padding-bottom: 2px;
    border-radius: 0;
}
body.login .h_site .btn-warning {
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.login .h_site .btn-warning:hover {
    background: var(--accent-deep);
}

/* theme switch button */
.theme_btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: background .15s, border-color .15s;
    flex: none;
}
.theme_btn:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
}
.theme_btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.theme_btn svg {
    width: 20px;
    height: 20px;
}
.theme_btn .sun { display: none; }
:root[data-theme="dark"] .theme_btn .sun { display: block; }
:root[data-theme="dark"] .theme_btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme_btn .sun { display: block; }
    :root:not([data-theme="light"]) .theme_btn .moon { display: none; }
}
.h_actions_m {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Auth layout
   ========================================================================== */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    min-height: 820px;
    overflow: hidden;
}

/* ---------- left column: form ---------- */
.auth .left {
    padding: 0 56px 40px 64px;
    display: flex;
    flex-direction: column;
}
.auth .form-wrap {
    max-width: 460px;
    width: 100%;
    margin: 0;
    padding-top: 48px;
}
.auth .form-wrap.wide {
    max-width: 560px;
}
.auth .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.auth .eyebrow i {
    width: 18px;
    height: 2px;
    background: var(--accent);
    display: inline-block;
    border-radius: 2px;
}
.auth h1.title {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}
.auth h1.title b {
    font-weight: 800;
}
.auth .lede {
    color: var(--muted);
    margin: 12px 0 0;
    font-size: 15px;
    max-width: 42ch;
    line-height: 1.5;
}
.auth .fields {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth .grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.auth .field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}
.auth .field label span {
    color: var(--muted);
    font-weight: 400;
    font-size: 12.5px;
}
.auth .field label .pw_toggle {
    color: var(--accent-deep);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.auth .ctl {
    position: relative;
    display: flex;
    align-items: center;
}
.auth .ctl svg.ic {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}
.auth .ctl input.form-control {
    width: 100%;
    height: 56px;
    padding: 0 52px 0 50px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--input);
    color: var(--ink) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    outline: 0;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.auth .ctl input.form-control::placeholder {
    color: var(--muted);
    opacity: .7;
}
.auth .ctl input.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus);
}
.auth .ctl input.form-control:-webkit-autofill,
.auth .ctl input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px var(--input) inset;
    transition: background-color 9999s ease-out;
}
.auth .ctl .eye {
    position: absolute;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}
.auth .ctl .eye:hover {
    background: var(--panel);
    color: var(--ink);
}
.auth .ctl .eye svg {
    width: 18px;
    height: 18px;
}
.auth .ctl .eye .eye-off { display: none; }
.auth .ctl.revealed .eye .eye-on { display: none; }
.auth .ctl.revealed .eye .eye-off { display: block; }

.auth .field.error .ctl input.form-control,
.auth .ctl input.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(229, 72, 77, .14);
    background-image: none;
}

/* inline validation messages (ids kept for the existing JS) */
.auth .hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--danger) !important;
    font-weight: 500;
    font-size: 12.5px;
    margin-top: 8px;
    background: none;
    padding: 0;
}
.auth .hint svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.auth .row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--muted);
    flex-wrap: wrap;
}
.auth .row-between p {
    margin: 0;
}
.auth .row-between a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
    padding-bottom: 1px;
}
.auth .check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin: 0;
    font-weight: 400;
}
.auth .check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.auth .check i {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--line-strong);
    display: inline-grid;
    place-items: center;
    background: var(--input);
    flex: none;
    transition: background .15s, border-color .15s;
}
.auth .check input:checked + i {
    background: var(--accent);
    border-color: var(--accent);
}
.auth .check input:checked + i::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #1C1B19;
    border-bottom: 2px solid #1C1B19;
    transform: rotate(-45deg) translate(1px, -1px);
}
.auth .check input:focus-visible + i {
    box-shadow: 0 0 0 4px var(--focus);
}

/* turnstile */
.auth .cf-turnstile {
    min-height: 65px;
}
.auth .cf-turnstile iframe {
    max-width: 100%;
}

/* buttons */
.auth .btn.btn-primary-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    width: 100%;
    background: var(--btn);
    color: var(--btn-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 8px 20px -10px rgba(0, 0, 0, .35);
    transition: background .15s, transform .05s;
    user-select: none;
}
.auth .btn.btn-primary-auth:hover {
    background: var(--btn-hover);
    color: var(--btn-ink);
}
.auth .btn.btn-primary-auth:active {
    transform: translateY(1px);
}
.auth .btn.btn-primary-auth svg {
    width: 18px;
    height: 18px;
}
.auth .btn.btn-secondary-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    background: var(--sec-bg);
    color: var(--sec-ink);
    border: 1px solid var(--accent);
    text-decoration: none;
    box-shadow: none;
}
.auth .btn.btn-secondary-auth:hover {
    filter: brightness(.96);
    color: var(--sec-ink);
}
.auth .btn.btn-secondary-auth svg {
    width: 18px;
    height: 18px;
}
.auth .foot {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
}
.auth .foot p {
    margin: 0;
}
.auth .foot a.plain {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
}

/* alerts (ids result_ok / result_err kept) */
.auth .alert {
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 16px;
    margin: 0;
    line-height: 1.5;
}
.auth .alert-success {
    background: var(--alert-ok-bg);
    color: var(--alert-ok-ink);
    border-color: rgba(46, 158, 107, .25);
}
.auth .alert-danger {
    background: var(--alert-err-bg);
    color: var(--alert-err-ink);
    border-color: rgba(229, 72, 77, .25);
}

/* password rules (signup) */
.auth .rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: -4px 0 0;
    padding: 0;
    list-style: none;
}
.auth .rules li {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12.5px;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    line-height: 1.3;
}
.auth .rules li i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    flex: none;
    display: inline-grid;
    place-items: center;
}
.auth .rules li.pwdCheckerGray {
    color: var(--muted);
}
.auth .rules li.pwdCheckerGreen {
    color: var(--ink);
}
.auth .rules li.pwdCheckerGreen i {
    background: var(--ok);
    border-color: var(--ok);
}
.auth .rules li.pwdCheckerGreen i::after {
    content: '';
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

/* ---------- right column: brand panel ---------- */
.auth .right {
    position: relative;
    background: var(--side);
    color: #F1EFE8;
    overflow: hidden;
    border-radius: 28px 0 0 28px;
    isolation: isolate;
}
.auth .right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 45% at 85% 0%, rgba(251, 188, 4, .30), transparent 70%),
        radial-gradient(50% 40% at 10% 100%, rgba(251, 188, 4, .10), transparent 70%),
        linear-gradient(180deg, var(--side-2), var(--side));
}
.auth .right::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 100%);
}
.auth .pitch {
    padding: 44px 44px 0 48px;
    position: relative;
    z-index: 1;
}
.auth .pitch .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.auth .pitch .tag i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(251, 188, 4, .2);
}
.auth .pitch h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
    max-width: 16ch;
    margin: 0;
    color: #F1EFE8;
    text-wrap: balance;
}
.auth .pitch h2 em {
    font-style: normal;
    color: var(--accent);
}
.auth .pitch p {
    color: rgba(241, 239, 232, .68);
    margin: 14px 0 0;
    max-width: 40ch;
    font-size: 14.5px;
    line-height: 1.5;
}
.auth .shot {
    position: absolute;
    left: 8%;
    right: -26%;
    bottom: -6%;
    top: 37%;
    z-index: 0;
}
.auth .shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
}
.auth .chip {
    position: absolute;
    z-index: 2;
    background: rgba(20, 21, 24, .78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
    min-width: 168px;
}
.auth .chip small {
    display: block;
    font-size: 11px;
    color: rgba(241, 239, 232, .6);
    font-weight: 500;
    letter-spacing: .02em;
}
.auth .chip b {
    display: block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
    color: #F1EFE8;
}
.auth .chip .up {
    color: #5BD39A;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}
.auth .chip.c1 { right: 40px; top: 44%; }
.auth .chip.c2 { left: 36px; bottom: 110px; }
.auth .chip .paid {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(241, 239, 232, .85);
}
.auth .chip .paid i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5BD39A;
    box-shadow: 0 0 0 3px rgba(91, 211, 154, .2);
}
.auth .trust {
    position: absolute;
    left: 48px;
    right: 44px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(241, 239, 232, .55);
    font-size: 12px;
}
.auth .trust .dots {
    display: flex;
    gap: 6px;
}
.auth .trust .dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(241, 239, 232, .25);
}
.auth .trust .dots i.on {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

/* ==========================================================================
   Footer (keeps the current structure, themed)
   ========================================================================== */
body.login .f_site {
    background: var(--side);
    position: relative;
    isolation: isolate;
}
body.login .f_site::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(50% 40% at 100% 0%, rgba(251, 188, 4, .18), transparent 70%),
        linear-gradient(180deg, var(--side-2), var(--side));
}
body.login .f_site .col_f .partners_f .bx_partner_f,
body.login .f_site .col_f .pay_foot .bx_pay_foot {
    box-shadow: none;
    background: var(--f-tile);
    border: 1px solid var(--f-tile-line);
}
body.login .f_site .contact_f.email {
    max-width: 100%;
    min-width: min(480px, 100%);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
}
body.login .f_site .contact_f.email > div span {
    color: rgba(255, 255, 255, .55);
}
body.login .f_site .contact_f.email > div p {
    color: #fff;
}
body.login .f_site .contact_f.email .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    display: grid;
    place-items: center;
    flex: none;
}
body.login .f_site .contact_f.email .icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0);
}
body.login .menu_f ul li a {
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
}
body.login .menu_f ul li a:hover {
    border-color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1212px) {
    .auth .left { padding: 0 40px 36px 44px; }
    .auth { grid-template-columns: minmax(0, 1fr) 42%; }
    .auth .pitch { padding: 36px 32px 0 36px; }
    .auth .pitch h2 { font-size: 26px; }
    .auth .chip.c1 { right: 20px; }
    .auth .chip.c2 { left: 24px; }
}
@media (max-width: 992px) {
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth .left { padding: 0 28px 28px; }
    .auth .form-wrap,
    .auth .form-wrap.wide { max-width: 560px; margin: 0 auto; padding-top: 48px; }
    /* brand panel collapses into a compact band under the form */
    .auth .right { border-radius: 0; min-height: 0; }
    .auth .right::after { display: none; }
    .auth .pitch { padding: 32px 28px 28px; text-align: center; }
    .auth .pitch h2 { max-width: none; font-size: 24px; margin: 0 auto; }
    .auth .pitch p { margin: 10px auto 0; font-size: 13.5px; }
    .auth .shot, .auth .chip, .auth .trust { display: none; }
}
@media (max-width: 632px) {
    .auth .left { padding: 0 18px 24px; }
    .auth .form-wrap { padding-top: 48px; }
    .auth h1.title { font-size: 26px; }
    .auth .lede { font-size: 14px; }
    .auth .fields { margin-top: 26px; gap: 16px; }
    .auth .grid2 { grid-template-columns: 1fr; }
    .auth .rules { grid-template-columns: 1fr; gap: 6px; }
    .auth .ctl input.form-control, .auth .btn.btn-primary-auth { height: 52px; }
    .auth .ctl input.form-control { font-size: 14.5px; }
    .auth .foot { flex-direction: column; gap: 10px; }
    .auth .foot .btn.btn-secondary-auth { width: 100%; }
    .auth .pitch { padding: 26px 20px 24px; }
    .auth .pitch h2 { font-size: 21px; }
    .theme_btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth *, .theme_btn { transition: none !important; }
}

/* ==========================================================================
   Framed page (matches the approved design: centered 1240px card on a scene ground)
   ========================================================================== */
:root { --scene-bg: #F3F2EE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --scene-bg: #16181C; } }
:root[data-theme="dark"] { --scene-bg: #16181C; }

body.login {
    background: var(--scene-bg);
    padding: 24px 16px 48px;
}
.auth_frame {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--ground);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--ink);
}

/* ---------- header: same structure, design metrics ---------- */
body.login .h_site,
body.login .h_site.sticky_top {
    position: relative;
    top: auto;
    padding: 14px 50px;
    border-top: 0;
    box-shadow: none;
    transition: none;
}
body.login .h_site .container {
    max-width: none;
    width: 100%;
    padding: 0;
}
body.login .h_site .row,
body.login .h_site.sticky_top .row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    background: none;
}
body.login .h_site .row > [class*="col-"] {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
}
body.login .h_site .navs_head .nav {
    gap: 28px;
    margin-left: 12px !important;
    flex-wrap: nowrap;
}
body.login .h_site .navs_head .nav .nav-item a {
    padding: 0;
    font-size: 14.5px;
}
body.login .h_site .logo_head {
    justify-self: center;
}
body.login .h_site .logo_head img {
    height: 22px;
    width: auto;
    display: block;
}
body.login .h_site .account_h {
    gap: 18px;
}
body.login .h_site .account_h li a:not(.btn) {
    font-size: 14.5px;
}
body.login .h_site .btn-warning {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1;
}
body.login .h_site .btn-warning svg {
    width: 18px;
    height: 18px;
}
body.login .h_site .h_actions_m {
    justify-self: end;
    gap: 18px;
}
body.login .h_site .h_actions_m .btn-warning {
    padding: 0 16px;
}
@media (max-width: 1212px) {
    body.login .h_site, body.login .h_site.sticky_top { padding: 12px 28px; }
    body.login .h_site .row { grid-template-columns: auto 1fr; }
    body.login .h_site .navs_head { display: none !important; }
    body.login .h_site .logo_head { justify-self: start; }
    body.login .h_site .h_actions_m { display: flex !important; }
}
@media (min-width: 1213px) {
    body.login .h_site .navs_head.d-lg-flex,
    body.login .h_site .navs_head.d-xl-flex { display: flex !important; }
    body.login .h_site .h_actions_m { display: none !important; }
}

/* ---------- footer: same structure & items, design metrics ---------- */
body.login .f_site {
    padding: 64px 0 40px;
    border-radius: 32px;
    margin: 10px 16px 16px;
}
body.login .f_site .container {
    max-width: none;
    width: 100%;
    padding: 0 56px;
}
body.login .f_site .bg_f_site {
    padding: 0;
}
body.login .f_site .row.justify-content-between:not(.copyright) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 48px;
    margin: 0;
}
body.login .f_site .row > [class*="col-"] {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
}
body.login .f_site .col_1_f > img {
    height: 28px;
    width: auto;
    margin-bottom: 20px;
}
body.login .f_site .info_site_f {
    color: rgba(255, 255, 255, .72);
    max-width: 56ch;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
}
body.login .f_site .contact_f.email {
    padding: 14px 18px;
    margin-bottom: 36px !important;
    border-radius: 16px;
    gap: 15px;
}
body.login .f_site .contact_f.email > div span {
    font-size: 13px;
}
body.login .f_site .contact_f.email > div p {
    font-size: 18px;
    font-weight: 600;
}
body.login .f_site .menu_f ul {
    gap: 28px;
    margin: 0 0 36px;
}
body.login .f_site .menu_f ul li a {
    font-size: 14.5px;
    font-weight: 500;
}
body.login .f_site .contact_f h4,
body.login .f_site .col_f h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 12px;
}
body.login .f_site .col_f h3 {
    margin-bottom: 20px;
}
body.login .f_site .col_1_f .contact_f:not(:last-child) {
    margin-bottom: 0;
}
body.login .f_site .list_brch {
    gap: 14px;
}
body.login .f_site .list_brch p {
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    gap: 10px;
}
body.login .f_site .list_brch p img {
    width: 40px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover;
}
body.login .f_site .partners_f {
    gap: 16px;
    align-items: center;
}
body.login .f_site .col_f .partners_f .bx_partner_f {
    border-radius: 16px;
    padding: 14px;
    display: grid;
    place-items: center;
    height: 150px;
    min-height: 0;
    flex: 1 1 140px;
}
body.login .f_site .col_f .partners_f .bx_partner_f img {
    max-height: 120px;
    width: auto;
    max-width: 100%;
}
body.login .f_site .col_f .partners_f .bx_partner_f a {
    display: block;
    line-height: 0;
}
body.login .f_site .col_f .partners_f .bx_partner_f a img {
    height: 120px;
}
body.login .f_site .col_f .contact_f.mt-4 {
    margin-top: 28px !important;
}
body.login .f_site .col_f .contact_f.mb-2 {
    margin-bottom: 12px !important;
}
body.login .f_site .col_f .pay_foot .bx_pay_foot {
    display: inline-flex;
    border-radius: 12px;
    padding: 10px 14px;
    flex: none;
    min-height: 0;
    box-shadow: none;
}
body.login .f_site .col_f .pay_foot .bx_pay_foot img {
    height: 32px;
    width: auto;
}
body.login .f_site .copyright {
    margin-top: 40px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
body.login .f_site .copy_right {
    font-size: 15px;
}
body.login .f_site .f_cert {
    gap: 12px;
    align-items: flex-end;
}
body.login .f_site .f_cert img {
    height: 28px;
    width: auto;
    max-width: 100%;
}
@media (max-width: 992px) {
    body.login .f_site { padding: 48px 0 32px; }
    body.login .f_site .container { padding: 0 28px; }
    body.login .f_site .row.justify-content-between:not(.copyright) { grid-template-columns: 1fr; gap: 36px; }
    body.login .f_site .f_cert { align-items: flex-start; }
}
@media (max-width: 632px) {
    body.login { padding: 12px 12px 32px; }
    .auth_frame { border-radius: 16px; }
    body.login .h_site, body.login .h_site.sticky_top { padding: 10px 16px; }
    body.login .h_site .logo_head img { height: 18px; }
    body.login .h_site .btn-warning { height: 40px; padding: 0 14px; }
    body.login .h_site .h_actions_m { gap: 10px; }
    body.login .f_site { border-radius: 20px; padding: 36px 0 24px; margin: 10px 12px 12px; }
    body.login .f_site .container { padding: 0 18px; }
    body.login .f_site .contact_f.email { width: 100%; min-width: 0; }
    body.login .f_site .contact_f.email > div p { font-size: 16px; word-break: break-all; }
    body.login .f_site .menu_f ul { gap: 14px 20px; }
    body.login .f_site .list_brch p { flex: 1 1 calc(50% - 7px); }
    body.login .f_site .col_f .partners_f .bx_partner_f { height: 130px; }
    body.login .f_site .copyright { flex-direction: column; align-items: flex-start; }
    body.login .f_site .f_cert img { height: auto; width: 100%; }
}
