:root {
    --auth-ink: #12231c;
    --auth-muted: #66766f;
    --auth-green: #188f5b;
    --auth-green-strong: #0c7245;
    --auth-mint: #e7f5ee;
    --auth-line: #dce5e0;
}

body.auth-page { background: #f5f7f6; }
.auth-page .navbar { position: relative; padding: 20px 0 10px; background: #f5f7f6 !important; backdrop-filter: none; border-bottom: 0; }
.auth-page .navbar > .container { width: min(1120px, calc(100% - 32px)); max-width: none; padding: 0; }
.auth-page .navbar-brand img { height: 42px !important; }
.auth-page .navbar-toggler { display: none; }
.auth-page .auth-navbar-actions { display: flex !important; flex-basis: auto; align-items: center; justify-content: flex-end; gap: 12px; }
.auth-navbar-back { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 13px; color: var(--auth-green-strong); border-radius: 11px; font-size: 11px; font-weight: 800; text-decoration: none; }
.auth-navbar-back:hover { color: var(--auth-ink); background: var(--auth-mint); }
.auth-navbar-register { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding-inline: 17px; border-radius: 11px; font-size: 11px; font-weight: 800; }
.auth-page .site-main { display: grid; align-items: center; }
.auth-page .site-footer { background: transparent; }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .7fr);
    width: min(1120px, 100%);
    min-height: 570px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(18, 35, 28, .1);
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    overflow: hidden;
    color: #fff;
    background: var(--auth-ink);
}

.auth-intro::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 58px solid rgba(130, 208, 169, .09);
    border-radius: 50%;
}

.auth-intro > * { position: relative; z-index: 1; }
.auth-kicker { color: #82d0a9; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-intro h1 { max-width: 590px; margin: 18px 0; color: #fff; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.06em; }
.auth-intro > p { max-width: 560px; margin: 0; color: #c2d0ca; font-size: 15px; line-height: 1.7; }
.auth-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 44px; }
.auth-proof-grid > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.auth-proof-grid i { display: grid; place-items: center; width: 34px; height: 34px; color: #82d0a9; background: rgba(130,208,169,.1); border-radius: 10px; }
.auth-proof-grid strong, .auth-proof-grid small { display: block; }
.auth-proof-grid strong { color: #fff; font-size: 11px; }
.auth-proof-grid small { margin-top: 2px; color: #9fb0a8; font-size: 8px; line-height: 1.35; }

.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 54px; }
.auth-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.auth-panel-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--auth-green-strong); background: var(--auth-mint); border-radius: 13px; }
.auth-panel-head p { margin: 0 0 4px; color: var(--auth-green-strong); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.auth-panel h2 { margin: 0; color: var(--auth-ink); font-size: 27px; letter-spacing: -.04em; }
.auth-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 8px; }
.auth-field-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-field-label a, .auth-register a { color: var(--auth-green-strong); font-size: 11px; font-weight: 700; text-decoration: none; }
.auth-field .form-label { margin: 0; color: var(--auth-ink); font-size: 11px; font-weight: 800; }
.auth-field .form-control { min-height: 52px; padding: 0 15px; color: var(--auth-ink); background: #fbfcfb; border: 1px solid var(--auth-line); }
.auth-field .form-control:focus { background: #fff; border-color: var(--auth-green); box-shadow: 0 0 0 4px rgba(24,143,91,.1); }
.auth-error { font-size: 11px; }
.auth-submit { width: 100%; min-height: 52px; justify-content: center; margin-top: 4px; font-size: 12px; font-weight: 800; }
.auth-register { margin: 24px 0 0; color: var(--auth-muted); font-size: 11px; text-align: center; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-intro { padding: 42px; }
    .auth-intro h1 { max-width: 680px; }
    .auth-proof-grid { margin-top: 30px; }
}

@media (max-width: 600px) {
    .auth-page .navbar { padding-top: 14px; }
    .auth-page .navbar > .container { width: min(100% - 28px, 1120px); }
    .auth-page .navbar-brand img { height: 36px !important; }
    .auth-navbar-back span { display: none; }
    .auth-page .site-main { padding: 14px !important; }
    .auth-shell { border-radius: 20px; }
    .auth-intro { padding: 32px 24px; }
    .auth-intro h1 { margin-block: 14px; font-size: 36px; }
    .auth-intro > p { font-size: 13px; }
    .auth-proof-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 24px; }
    .auth-proof-grid > div { padding: 10px; }
    .auth-panel { padding: 32px 24px; }
}
