:root {
    --auth-green: #08783e;
    --auth-green-dark: #055d30;
    --auth-ink: #17231d;
    --auth-muted: #68756e;
    --auth-border: #dfe7e2;
}

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

.auth-body {
    margin: 0;
    background: #f4f7f5;
    color: var(--auth-ink);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr);
    min-height: 100vh;
}

.auth-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    color: #fff;
    background: radial-gradient(circle at 90% 12%, rgba(150, 230, 169, .35), transparent 26%),
        radial-gradient(circle at 12% 92%, rgba(119, 210, 145, .24), transparent 30%),
        linear-gradient(145deg, #075a31 0%, #08783e 52%, #0d8d49 100%);
}

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

.auth-visual::before { width: 420px; height: 420px; top: -190px; right: -170px; }
.auth-visual::after { width: 310px; height: 310px; bottom: -170px; left: -100px; }

.auth-logo {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.auth-logo-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--auth-green);
    color: #fff;
    box-shadow: 0 8px 24px rgba(3, 65, 32, .2);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-logo-light .auth-logo-icon {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.auth-logo strong, .auth-logo small { display: block; }
.auth-logo strong { font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; }
.auth-logo small { margin-top: 3px; color: inherit; font-size: 10px; font-weight: 600; letter-spacing: 1.3px; opacity: .7; text-transform: uppercase; }

.auth-visual-content { max-width: 560px; margin: auto 0; }
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 700;
}

.auth-visual h2 { max-width: 520px; margin: 0 0 20px; font-size: clamp(38px, 4.2vw, 64px); font-weight: 800; letter-spacing: -2.5px; line-height: 1.08; }
.auth-visual-content p { max-width: 480px; margin: 0; color: rgba(255, 255, 255, .74); font-size: 16px; line-height: 1.8; }
.auth-feature-list { display: flex; flex-wrap: wrap; gap: 24px; color: rgba(255, 255, 255, .76); font-size: 12px; font-weight: 600; }
.auth-feature-list span { display: inline-flex; align-items: center; gap: 7px; }

.auth-form-panel {
    display: flex;
    min-height: 100vh;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(28px, 7vw, 110px);
    background: #fff;
}

.auth-form-wrap { width: 100%; max-width: 440px; min-width: 0; }
.auth-logo-mobile { display: none; margin-bottom: 48px; }
.auth-heading { margin-bottom: 34px; }
.auth-eyebrow { display: block; margin-bottom: 10px; color: var(--auth-green); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.auth-heading h1 { margin: 0 0 11px; color: var(--auth-ink); font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.12; }
.auth-heading p { margin: 0; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.auth-alert-danger { border-color: #f3c8c8; background: #fff4f4; color: #a72d2d; }
.auth-alert-success { border-color: #bee2ca; background: #effaf3; color: #136936; }
.auth-form { display: grid; gap: 22px; }
.auth-field label { display: block; margin-bottom: 9px; color: #34423b; font-size: 12px; font-weight: 700; }
.auth-input-wrap { position: relative; }
.auth-field-icon { position: absolute; top: 50%; left: 16px; color: #849089; font-size: 16px; font-weight: 700; pointer-events: none; transform: translateY(-50%); }
.auth-field-icon-dot { width: 13px; height: 16px; }
.auth-field-icon-dot::before { position: absolute; top: 6px; left: 3px; width: 7px; height: 7px; content: ""; border: 2px solid currentColor; border-radius: 50%; }
.auth-field-icon-dot::after { position: absolute; top: 0; left: 1px; width: 11px; height: 9px; content: ""; border: 2px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }

.auth-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    outline: 0;
    background: #fbfcfb;
    color: var(--auth-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="text"]#password {
    padding-right: 68px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    padding: 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-green);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
}

.auth-password-toggle:focus-visible {
    border-radius: 5px;
    box-shadow: 0 0 0 3px rgba(8, 120, 62, .12);
}

.auth-input-wrap input::placeholder { color: #a0aaa5; }
.auth-input-wrap input:focus { border-color: var(--auth-green); background: #fff; box-shadow: 0 0 0 4px rgba(8, 120, 62, .09); }
.auth-input-wrap:focus-within > .auth-field-icon { color: var(--auth-green); }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: -2px; }
.auth-check { display: inline-flex; align-items: center; gap: 9px; color: var(--auth-muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--auth-green); }
.auth-options a, .auth-support a { color: var(--auth-green); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-options a:hover, .auth-support a:hover { text-decoration: underline; }

.auth-submit {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    background: var(--auth-green);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(8, 120, 62, .2);
    transition: background .2s, box-shadow .2s, transform .2s;
}

.auth-submit:hover { background: var(--auth-green-dark); box-shadow: 0 14px 28px rgba(8, 120, 62, .25); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-support { margin: 30px 0 0; color: #87928c; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
    .auth-shell { display: block; }
    .auth-visual { display: none; }
    .auth-form-panel { min-height: 100vh; }
    .auth-logo-mobile { display: inline-flex; }
}

@media (max-width: 540px) {
    .auth-form-panel { align-items: flex-start; padding: 30px 22px 36px; }
    .auth-logo-mobile { margin-bottom: 58px; }
    .auth-heading { margin-bottom: 28px; }
    .auth-heading h1 { font-size: 34px; }
}

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