:root {
    --forest-950: #0b2d22;
    --forest-900: #103b2c;
    --forest-800: #15503a;
    --forest-700: #1c6a4b;
    --forest-100: #dcebe5;
    --forest-50: #f0f6f3;
    --gold: #d6a623;
    --ink: #16241f;
    --muted: #66756f;
    --line: #dce5e1;
    --white: #fff;
    --danger-bg: #fff2f1;
    --danger: #a73c35;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background: #f7f9f8;
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-page {
    display: grid;
    grid-template-columns: minmax(390px, 44%) 1fr;
    min-height: 100vh;
}

.identity-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(145deg, var(--forest-950), var(--forest-800));
}

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

.identity-panel::before { width: 520px; height: 520px; right: -300px; top: -150px; }
.identity-panel::after { width: 680px; height: 680px; left: -390px; bottom: -430px; }

.identity-content {
    display: flex;
    flex-direction: column;
    width: min(100%, 610px);
    min-height: 100vh;
    margin-left: auto;
    padding: clamp(36px, 6vw, 72px);
}

.brand { display: flex; align-items: center; gap: 18px; }
.brand-seal {
    display: grid;
    width: 80px;
    height: 88px;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.brand img { width: 61px; height: auto; }
.brand p { margin: 0 0 2px; color: rgba(255,255,255,.72); font-size: .85rem; letter-spacing: .13em; text-transform: uppercase; }
.brand strong { font-family: Montserrat, sans-serif; font-size: 1.28rem; text-transform: uppercase; }

.identity-copy { margin: auto 0; max-width: 480px; }
.eyebrow { display: block; margin: 0 0 15px; color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.identity-copy h1 { margin: 0; font-family: Montserrat, sans-serif; font-size: clamp(2.3rem, 4.2vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; }
.identity-copy p { max-width: 430px; margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: 1.05rem; line-height: 1.7; }
.identity-footer { margin: 0; color: rgba(255,255,255,.5); font-size: .86rem; }

.form-panel { display: grid; place-items: center; padding: 42px clamp(24px, 6vw, 88px); }
.login-card { width: min(100%, 510px); }
.login-card header { margin-bottom: 29px; }
.login-card header h2 { margin: 0 0 9px; font-family: Montserrat, sans-serif; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.login-card header > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.mobile-logo { display: none; }

.alert { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; padding: 13px 15px; border: 1px solid #f1d0cd; border-radius: 10px; color: var(--danger); background: var(--danger-bg); font-size: .9rem; }
.alert span { display: grid; flex: 0 0 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--danger); font-weight: 700; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.module-choice legend, .field > label { display: block; margin-bottom: 9px; color: #33433d; font-size: .86rem; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-content { display: flex; min-height: 82px; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: .18s ease; }
.choice-icon { display: grid; flex: 0 0 43px; height: 43px; place-items: center; border-radius: 10px; color: var(--forest-700); background: var(--forest-50); }
.choice-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice-content strong, .choice-content small { display: block; }
.choice-content strong { font-size: .94rem; }
.choice-content small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.check { display: grid; width: 20px; height: 20px; margin-left: auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: .72rem; }
.choice-card input:checked + .choice-content { border-color: var(--forest-700); background: var(--forest-50); box-shadow: 0 0 0 3px rgba(28,106,75,.08); }
.choice-card input:checked + .choice-content .check { border-color: var(--forest-700); color: #fff; background: var(--forest-700); }
.choice-card input:focus-visible + .choice-content { outline: 3px solid rgba(28,106,75,.2); outline-offset: 2px; }

.field { margin-top: 20px; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 50%; left: 15px; width: 20px; transform: translateY(-50%); fill: none; stroke: #788680; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input { width: 100%; height: 53px; padding: 0 48px 0 46px; border: 1.5px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: var(--white); transition: .18s ease; }
.input-wrap input::placeholder { color: #9aa6a1; }
.input-wrap input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(28,106,75,.09); }
.password-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 8px; color: #788680; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--forest-700); background: var(--forest-50); }
.password-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.submit-button { display: flex; width: 100%; height: 55px; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; border: 0; border-radius: 10px; color: #fff; background: var(--forest-800); box-shadow: 0 10px 24px rgba(21,80,58,.2); font-weight: 700; cursor: pointer; transition: .18s ease; }
.submit-button:hover { background: var(--forest-700); transform: translateY(-1px); box-shadow: 0 13px 28px rgba(21,80,58,.25); }
.submit-button:active { transform: translateY(0); }
.submit-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-card footer { margin-top: 27px; color: #89958f; font-size: .8rem; text-align: center; }

@media (max-width: 850px) {
    .login-page { display: block; }
    .identity-panel { display: none; }
    .form-panel { min-height: 100vh; padding: 32px 20px; }
    .mobile-logo { display: grid; width: 70px; height: 78px; margin-bottom: 27px; place-items: center; border-radius: 13px; background: #fff; box-shadow: 0 8px 25px rgba(15,59,44,.12); }
    .mobile-logo img { width: 54px; }
}

@media (max-width: 440px) {
    .choice-grid { grid-template-columns: 1fr; }
    .choice-content { min-height: 70px; }
    .login-card header { margin-bottom: 24px; }
}

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