:root {
    --auth-ink: #14342f;
    --auth-muted: #60736f;
    --auth-green: #025649;
    --auth-green-dark: #013f36;
    --auth-green-bright: #0c7a6d;
    --auth-cream: #f8f5ef;
    --auth-border: rgba(20, 52, 47, 0.12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--auth-cream); }

body.auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 4% 10%, rgba(76, 181, 158, .12), transparent 24rem),
        radial-gradient(circle at 96% 90%, rgba(2, 86, 73, .08), transparent 28rem),
        var(--auth-cream);
    font-family: "Open Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page .global-nav {
    position: relative;
    z-index: 50;
    width: 100%;
    padding: 0 32px;
    background: rgba(248, 245, 239, .92);
    border-bottom: 1px solid rgba(2, 86, 73, .09);
    backdrop-filter: blur(18px);
}

.auth-page .global-nav-inner {
    width: min(1180px, 100%);
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.auth-page .global-nav-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.auth-page .global-nav-brand img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.auth-page .global-nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-page .global-nav-links li { position: relative; list-style: none; }

.auth-page .global-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 0;
    color: #496863;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.auth-page .global-nav-links a:hover,
.auth-page .global-nav-links a:focus-visible { color: var(--auth-green); }

.auth-page .global-nav-links .has-sub > a::after {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.auth-page .global-nav-links .sub-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: -16px;
    z-index: 60;
    min-width: 220px;
    margin: 0;
    padding: 9px;
    display: grid;
    gap: 2px;
    visibility: hidden;
    opacity: 0;
    list-style: none;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(6, 58, 50, .14);
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.auth-page .global-nav-links .sub-menu a {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--auth-ink);
}

.auth-page .global-nav-links .sub-menu a:hover { background: #eff8f5; }

.auth-page .global-nav-links .has-sub:hover .sub-menu,
.auth-page .global-nav-links .has-sub:focus-within .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.auth-page .global-nav-cta {
    flex: 0 0 auto;
    padding: 11px 19px;
    color: #fff;
    background: var(--auth-green);
    border: 1px solid var(--auth-green);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.auth-page .global-nav-cta:hover {
    color: #fff;
    background: var(--auth-green-bright);
    box-shadow: 0 10px 24px rgba(2, 86, 73, .18);
    transform: translateY(-1px);
}

.auth-main {
    min-height: calc(100vh - 74px);
    padding: clamp(24px, 4vw, 54px) 28px;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 52, 47, .08);
    border-radius: 32px;
    box-shadow: 0 26px 70px rgba(6, 58, 50, .14);
}

.auth-story {
    position: relative;
    min-height: 660px;
    padding: clamp(38px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(1, 63, 54, .96), rgba(2, 86, 73, .83)),
        url("/images/teal-background.jpg") center / cover;
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    content: "";
}

.auth-story::before { top: -180px; right: -150px; width: 460px; height: 460px; }
.auth-story::after { right: 70px; bottom: -245px; width: 510px; height: 510px; }

.auth-story-mark {
    position: absolute;
    top: 52px;
    right: 35px;
    z-index: -1;
    width: min(52%, 320px);
    opacity: .08;
    filter: brightness(0) invert(1);
    transform: rotate(7deg);
}

.auth-story-badge {
    width: fit-content;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.auth-story-badge::before {
    width: 7px;
    height: 7px;
    background: #83dfc4;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(131, 223, 196, .12);
    content: "";
}

.auth-story-copy { max-width: 520px; }

.auth-story h2 {
    max-width: 500px;
    margin: 0 0 20px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4.3vw, 66px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.auth-story p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.8;
}

.auth-benefits {
    margin: 36px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.auth-benefits li {
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.auth-benefits svg { width: 14px; height: 14px; color: #8fe4cb; }

.auth-form-panel {
    padding: clamp(42px, 5vw, 72px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 243, 236, .72), transparent 18rem),
        #fff;
}

.auth-form-wrap { width: 100%; max-width: 430px; margin: 0 auto; }

.auth-eyebrow {
    margin-bottom: 11px;
    color: var(--auth-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-form-wrap h1 {
    margin: 0 0 12px;
    color: var(--auth-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.auth-intro {
    margin: 0 0 32px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.7;
}

.auth-alert,
.auth-validation {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.55;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #175a4f;
    background: #e9f7f2;
    border: 1px solid rgba(12, 122, 109, .17);
}

.auth-alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

.auth-validation {
    color: #8c2f39;
    background: #fff3f3;
    border: 1px solid rgba(160, 52, 64, .14);
}

.auth-validation:empty,
.auth-validation.validation-summary-valid { display: none; }
.auth-validation ul { margin: 0; padding-left: 18px; }

.auth-field { margin-bottom: 19px; }

.auth-field-head {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-field label { margin: 0; color: var(--auth-ink); font-size: 12px; font-weight: 750; }

.auth-forgot {
    color: var(--auth-green);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--auth-green-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-input-wrap { position: relative; }

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #739089;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 46px;
    color: var(--auth-ink);
    background: #f8faf9;
    border: 1px solid #dce6e2;
    border-radius: 14px;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-input::placeholder { color: #91a29e; }
.auth-input:hover { border-color: #becfc9; }

.auth-input:focus {
    background: #fff;
    border-color: var(--auth-green-bright);
    box-shadow: 0 0 0 4px rgba(12, 122, 109, .1);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #66827b;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--auth-green);
    background: #eaf5f1;
    outline: none;
}

.auth-password-toggle svg { width: 18px; height: 18px; }

.auth-field-error {
    display: block;
    margin-top: 6px;
    color: #a03340;
    font-size: 11px;
}

.auth-submit {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(2, 86, 73, .2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 17px 32px rgba(2, 86, 73, .25);
    transform: translateY(-1px);
}

.auth-submit:active { transform: translateY(0); }
.auth-submit svg { width: 17px; height: 17px; }

.auth-separator {
    margin: 27px 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8a9b97;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-separator::before,
.auth-separator::after {
    height: 1px;
    flex: 1;
    background: #e3ebe8;
    content: "";
}

.auth-register {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--auth-green);
    background: #fff;
    border: 1px solid rgba(2, 86, 73, .25);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.auth-register:hover {
    color: var(--auth-green);
    background: #f0f8f5;
    border-color: rgba(2, 86, 73, .48);
    transform: translateY(-1px);
}

.auth-note {
    margin: 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #82938f;
    font-size: 11px;
}

.auth-note svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
    .auth-page .global-nav-links { gap: 16px; }
    .auth-page .global-nav-links a { font-size: 11px; }
    .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
}

@media (max-width: 900px) {
    .auth-page .global-nav-links { display: none; }
    .auth-page .global-nav-inner { justify-content: space-between; }
    .auth-shell { max-width: 690px; grid-template-columns: 1fr; }
    .auth-story { min-height: 340px; padding: 42px; }
    .auth-story h2 { max-width: 560px; font-size: clamp(38px, 7vw, 54px); }
    .auth-story-mark { top: 20px; right: 20px; width: 230px; }
}

@media (max-width: 600px) {
    .auth-page .global-nav { padding: 0 18px; }
    .auth-page .global-nav-inner { min-height: 66px; }
    .auth-page .global-nav-brand img { width: 49px; height: 49px; }
    .auth-page .global-nav-cta { padding: 9px 14px; font-size: 11px; }
    .auth-main { min-height: calc(100vh - 66px); padding: 14px; align-items: start; }
    .auth-shell { border-radius: 24px; }
    .auth-story { min-height: 245px; padding: 30px 26px; }
    .auth-story-badge, .auth-benefits { display: none; }
    .auth-story h2 { margin-bottom: 12px; font-size: 35px; }
    .auth-story p { font-size: 13px; line-height: 1.6; }
    .auth-form-panel { padding: 34px 24px 30px; }
    .auth-form-wrap h1 { font-size: 34px; }
    .auth-intro { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
