:root {
    --auth-primary: #00532a;
    --auth-primary-dark: #003d1f;
    --auth-primary-soft: #edf6f1;
    --auth-text: #19231e;
    --auth-muted: #6e7872;
    --auth-border: #dce4df;
    --auth-danger: #b42318;
    --auth-surface: #ffffff;
    --auth-bg: #eef3f0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.geo-login {
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.geo-login__viewport {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 83, 42, 0.10), transparent 30rem),
        linear-gradient(135deg, #f7faf8 0%, #e9f0ec 100%);
}

.geo-login__shell {
    width: min(1120px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    overflow: hidden;
    border: 1px solid rgba(0, 83, 42, 0.10);
    border-radius: 30px;
    background: var(--auth-surface);
    box-shadow: 0 30px 90px rgba(15, 42, 28, 0.16);
}

.geo-login__brand {
    position: relative;
    overflow: hidden;
    padding: 58px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(155deg, rgba(0, 44, 22, .22), rgba(0, 83, 42, .04)),
        linear-gradient(145deg, #006633 0%, #004723 55%, #002e17 100%);
    color: #fff;
}

.geo-login__brand::before,
.geo-login__brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}

.geo-login__brand::before { width: 430px; height: 430px; top: -170px; right: -140px; }
.geo-login__brand::after { width: 280px; height: 280px; top: -85px; right: -60px; }

.geo-login__brand-content { position: relative; z-index: 2; max-width: 470px; }
.geo-login__logo { width: min(280px, 80%); max-height: 92px; object-fit: contain; object-position: left center; margin-bottom: 54px; }

.geo-login__brand-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.geo-login__brand h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(2.05rem, 3.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.geo-login__brand p { margin: 20px 0 0; color: rgba(255,255,255,.76); font-size: 1rem; }

.geo-login__brand-mark {
    position: absolute;
    width: 190px;
    height: 190px;
    right: -72px;
    bottom: -72px;
    border-radius: 52px;
    transform: rotate(22deg);
    background: rgba(255,255,255,.055);
}

.geo-login__panel { display: grid; place-items: center; padding: 54px clamp(34px, 6vw, 76px); }
.geo-login__form-wrap { width: min(100%, 430px); }
.geo-login__mobile-logo { display: none; }
.geo-login__eyebrow { color: var(--auth-primary); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.geo-login__heading h2 { margin: 9px 0 8px; font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.15; }
.geo-login__heading p { margin: 0; color: var(--auth-muted); line-height: 1.55; }
.geo-login__form { margin-top: 30px; }
.geo-login__field { margin-bottom: 20px; }
.geo-login__field label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 750; }
.geo-login__label-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.geo-login__label-row a { margin-bottom: 8px; color: var(--auth-primary); font-size: .82rem; font-weight: 650; text-decoration: none; }
.geo-login__label-row a:hover { text-decoration: underline; }

.geo-login__input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    outline: none;
    background: #fbfcfb;
    color: var(--auth-text);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.geo-login__input:focus { border-color: var(--auth-primary); background: #fff; box-shadow: 0 0 0 4px rgba(0,83,42,.10); }
.geo-login__field.has-error .geo-login__input { border-color: var(--auth-danger); }
.geo-login__error { display: block; margin-top: 7px; color: var(--auth-danger); font-size: .8rem; }

.geo-login__submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    background: var(--auth-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0,83,42,.18);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.geo-login__submit:hover { background: var(--auth-primary-dark); box-shadow: 0 14px 30px rgba(0,83,42,.23); }
.geo-login__submit:active { transform: translateY(1px); }
.geo-login__submit:focus-visible { outline: 3px solid rgba(0,83,42,.25); outline-offset: 3px; }

.geo-login__messages { margin-top: 22px; }
.geo-login__alert { padding: 12px 14px; border: 1px solid rgba(0,83,42,.15); border-radius: 12px; background: var(--auth-primary-soft); color: #164a30; font-size: .86rem; line-height: 1.45; }
.geo-login__alert--warning { border-color: rgba(180,35,24,.15); background: #fff5f4; color: #8f1d14; }

.geo-login__security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; color: var(--auth-muted); font-size: .79rem; line-height: 1.48; }
.geo-login__security-note svg { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: var(--auth-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .geo-login__shell { grid-template-columns: 1fr; min-height: auto; max-width: 560px; }
    .geo-login__brand { display: none; }
    .geo-login__panel { padding: 46px 38px; }
    .geo-login__mobile-logo { display: block; margin-bottom: 34px; }
    .geo-login__mobile-logo img { width: min(235px, 70%); max-height: 78px; object-fit: contain; object-position: left center; }
}

@media (max-width: 520px) {
    .geo-login__viewport { padding: 0; background: #fff; }
    .geo-login__shell { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .geo-login__panel { align-items: center; padding: 34px 24px; }
    .geo-login__label-row { align-items: flex-start; }
}

.geo-login__preregister {
    margin-top: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    background: #f7faf8;
    color: var(--auth-muted);
    font-size: .86rem;
}
.geo-login__preregister a { color: var(--auth-primary); font-weight: 800; text-decoration: none; }
.geo-login__preregister a:hover { text-decoration: underline; }


/* Public preregistration --------------------------------------------------- */
.geo-register__viewport {
    padding: clamp(18px, 2.5vw, 34px);
}

.geo-register__shell {
    width: min(1260px, 100%);
    min-height: min(830px, calc(100dvh - 48px));
    grid-template-columns: minmax(330px, .72fr) minmax(650px, 1.28fr);
    border-radius: 28px;
}

.geo-register__brand {
    align-items: center;
    padding: clamp(38px, 4.2vw, 58px);
}

.geo-register__brand-content { max-width: 430px; }
.geo-register__brand .geo-login__logo { margin-bottom: 46px; width: min(245px, 76%); }
.geo-register__brand h1 { font-size: clamp(2.1rem, 3.1vw, 3rem); }
.geo-register__brand p { max-width: 410px; line-height: 1.6; }

.geo-register__brand-steps {
    display: grid;
    gap: 13px;
    margin-top: 34px;
}
.geo-register__brand-steps > div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.82);
    font-size: .9rem;
}
.geo-register__brand-steps strong {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: .78rem;
}

.geo-register__panel {
    align-items: start;
    overflow-y: auto;
    padding: 34px clamp(32px, 4.2vw, 58px);
}
.geo-register__form-wrap { width: min(100%, 720px); margin: auto; }
.geo-register__heading { margin-bottom: 19px; }
.geo-register__heading h2 { font-size: clamp(1.8rem, 2.5vw, 2.25rem); }
.geo-register__form { margin-top: 0; }
.geo-register__top-alert { margin: 0 0 16px; }

.geo-register__section {
    margin: 0 0 14px;
    padding: 17px 18px 2px;
    border: 1px solid #e2e9e5;
    border-radius: 16px;
    background: #fff;
}

.geo-register__section-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 15px;
}
.geo-register__section-number {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    border-radius: 9px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
    font-size: .77rem;
    font-weight: 850;
}
.geo-register__section-heading h3 {
    margin: 1px 0 2px;
    color: #1b2a22;
    font-size: .96rem;
    line-height: 1.25;
}
.geo-register__section-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.geo-register__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}
.geo-register__wide { grid-column: 1 / -1; }
.geo-register__select { appearance: auto; }
.geo-register__optional { color: var(--auth-muted); font-weight: 500; }
.geo-register .geo-login__field { margin-bottom: 14px; }
.geo-register .geo-login__field label { margin-bottom: 6px; font-size: .82rem; }
.geo-register .geo-login__input { min-height: 49px; border-radius: 11px; padding: 0 14px; }

.geo-register__feedback {
    display: block;
    min-height: 0;
    margin-top: 6px;
    font-size: .76rem;
    line-height: 1.35;
}
.geo-register__feedback:empty { display: none; }
.geo-register__feedback.is-valid { color: #087443; }
.geo-register__feedback.is-invalid { color: var(--auth-danger); font-weight: 650; }

.geo-register__notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0,83,42,.12);
    border-radius: 12px;
    background: var(--auth-primary-soft);
    color: #315143;
    font-size: .79rem;
    line-height: 1.45;
}
.geo-register__notice strong { color: var(--auth-primary-dark); white-space: nowrap; }

.geo-register__validation-summary {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(180,35,24,.16);
    border-radius: 10px;
    background: #fff5f4;
    color: #8f1d14;
    font-size: .8rem;
    font-weight: 650;
}

.geo-register .geo-login__submit { min-height: 50px; margin-top: 0; border-radius: 11px; }
.geo-register .geo-login__submit:disabled {
    background: #91a69a;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .82;
}
.geo-register__back {
    display: block;
    margin-top: 13px;
    color: var(--auth-primary);
    text-align: center;
    font-weight: 750;
    text-decoration: none;
    font-size: .83rem;
}
.geo-register__back:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .geo-register__shell { grid-template-columns: 1fr; max-width: 760px; min-height: auto; }
    .geo-register__brand { display: none; }
    .geo-register__panel { padding: 36px 32px; }
    .geo-register__form-wrap { width: 100%; }
    .geo-register__panel .geo-login__mobile-logo { display: block; margin-bottom: 25px; }
}

@media (max-width: 680px) {
    .geo-register__viewport { padding: 0; background: #fff; }
    .geo-register__shell { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .geo-register__panel { padding: 28px 18px 34px; }
    .geo-register__grid { grid-template-columns: 1fr; }
    .geo-register__wide { grid-column: auto; }
    .geo-register__section { padding: 15px 14px 2px; }
    .geo-register__notice { grid-template-columns: 1fr; }
}

/* Privacy authorization --------------------------------------------------- */
.geo-register__privacy {
    padding-bottom: 16px;
}

.geo-register__privacy-box {
    margin-bottom: 2px;
}

.geo-register__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    border: 1px solid #dbe6df;
    border-radius: 13px;
    background: #f8fbf9;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.geo-register__consent:hover {
    border-color: rgba(0,83,42,.28);
    background: #f4f9f6;
}

.geo-register__consent:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(0,83,42,.09);
}

.geo-register__consent.has-error {
    border-color: rgba(180,35,24,.35);
    background: #fff9f8;
}

.geo-register__checkbox {
    padding-top: 2px;
}

.geo-register__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.geo-register__consent-text {
    color: #405149;
    font-size: .79rem;
    line-height: 1.58;
}

.geo-register__consent-text strong {
    color: #1c3026;
}

.geo-register__consent-text a {
    color: var(--auth-primary);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.geo-register__privacy-error {
    margin: 7px 2px 0;
}

.geo-register__privacy-version {
    display: block;
    margin: 8px 2px 0;
    color: #7b8a82;
    font-size: .7rem;
}

@media (max-width: 680px) {
    .geo-register__consent {
        padding: 13px 12px;
        gap: 10px;
    }

    .geo-register__consent-text {
        font-size: .77rem;
        line-height: 1.52;
    }
}

/* V9.3 - login-only visual correction. Public preregistration keeps its own layout. */
.geo-login--signin .geo-login__logo{width:min(285px,82%);height:59px;max-height:none;object-fit:contain;object-position:left center}
.geo-login--signin .geo-login__mobile-logo img{width:190px;height:40px;max-height:none;object-fit:contain;object-position:left center}
@media(max-width:900px){
  .geo-login--signin .geo-login__shell{max-width:500px}
  .geo-login--signin .geo-login__panel{place-items:start center;padding:34px 32px 38px}
  .geo-login--signin .geo-login__mobile-logo{margin-bottom:24px}
  .geo-login--signin .geo-login__form{margin-top:25px}
}
@media(max-width:520px){
  .geo-login--signin .geo-login__viewport{display:block;min-height:100dvh;padding:0;background:#f4f7f5}
  .geo-login--signin .geo-login__shell{width:100%;max-width:none;min-height:100dvh;border:0;border-radius:0;background:#fff;box-shadow:none}
  .geo-login--signin .geo-login__panel{display:block;padding:calc(26px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom))}
  .geo-login--signin .geo-login__form-wrap{width:100%;max-width:420px;margin:0 auto}
  .geo-login--signin .geo-login__mobile-logo{display:flex;align-items:center;min-height:42px;margin:0 0 28px}
  .geo-login--signin .geo-login__mobile-logo img{width:184px;height:38px}
  .geo-login--signin .geo-login__heading h2{font-size:1.72rem;margin-top:7px}
  .geo-login--signin .geo-login__heading p{font-size:.91rem;line-height:1.45}
  .geo-login--signin .geo-login__messages{margin-top:17px}
  .geo-login--signin .geo-login__form{margin-top:24px}
  .geo-login--signin .geo-login__field{margin-bottom:16px}
  .geo-login--signin .geo-login__input{min-height:50px;border-radius:12px}
  .geo-login--signin .geo-login__submit{min-height:50px;border-radius:12px}
  .geo-login--signin .geo-login__preregister{margin-top:16px;padding:12px 13px;flex-wrap:wrap}
  .geo-login--signin .geo-login__security-note{margin-top:18px;padding:0 2px;font-size:.77rem}
}
