:root {
    color-scheme: light;
    --green: #006341;
    --deep-green: #003d28;
    --gold: #ffd700;
    --muted: #607168;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 28px;
    background: #f4f7f4;
    color: #24352d;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: min(100%, 1040px);
    background: #fff;
    border: 1px solid #e1e8e3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 61, 40, .09);
}

.brand-panel {
    padding: 38px 44px;
    background: radial-gradient(circle at top left, #14734e, transparent 65%),
        linear-gradient(150deg, var(--green), var(--deep-green));
    color: #fff;
}

.pen-logo {
    display: block;
    width: 132px;
    height: 132px;
    object-fit: contain;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 50%;
    padding: 8px;
    margin-bottom: 22px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 12px;
}

h1 {
    font-family: Georgia, serif;
    font-weight: 500;
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -.03em;
    margin: 0 0 18px;
}

.tagline { font-size: 15px; color: #e5f1e9; margin: 0; }
.brand-description {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 215, 0, .35);
}
.brand-description > p:last-child { font-size: 14px; color: #e5f1e9; margin: 0; }
.mission { font-family: Georgia, serif; font-style: italic; font-size: 15px; color: #fff4b4; margin: 24px 0 0; }
.login-panel { padding: 48px 44px; align-self: center; }
.access-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    background: #eaf4ee;
    padding: 6px 12px;
    border-radius: 6px;
}
h2 { font-size: 32px; letter-spacing: -.04em; color: var(--deep-green); margin: 16px 0 8px; line-height: 1.2; }
.login-heading > p { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7e2da;
    border-radius: 9px;
    padding: 12px 14px;
    background: #fafcfb;
    color: #24352d;
    font: inherit;
    font-size: 14px;
}
input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 99, 65, .12); background: #fff; }
input::placeholder { color: #7c8b82; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-field button {
    position: absolute;
    right: 8px;
    top: 5px;
    min-height: 38px;
    border: 0;
    border-radius: 5px;
    padding: 0 10px;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.submit-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 26px;
    padding: 13px 18px;
    min-height: 48px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    background: var(--gold);
    color: var(--deep-green);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.submit-button:hover { background: #ffe455; border-color: #ffe455; }
.account-note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 26px; }
.login-footer { border-top: 1px solid #e1e8e3; padding-top: 20px; font-size: 12px; }
.login-footer p { color: var(--muted); margin: 0 0 7px; }
.login-footer a { color: var(--green); text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fff1f0; color: #a12721; border: 1px solid #f1cbc7; }
.alert-success { background: #eaf4ee; color: var(--deep-green); border: 1px solid #bdd6c7; }
button:focus-visible, a:focus-visible { outline: 3px solid #b38a00; outline-offset: 3px; }

@media (max-width: 700px) {
    body { padding: 16px; }
    .login-shell { grid-template-columns: 1fr; max-width: 460px; border-radius: 16px; }
    .brand-panel { padding: 24px; text-align: center; }
    .pen-logo { width: 84px; height: 84px; margin: 0 auto 12px; padding: 5px; }
    h1 { font-size: 26px; margin-bottom: 10px; }
    h1 br { display: none; }
    .brand-panel > .eyebrow { margin-bottom: 8px; }
    .tagline { font-size: 13px; }
    .brand-description, .mission { display: none; }
    .login-panel { padding: 26px 24px; }
    h2 { font-size: 28px; }
    .login-heading > p { margin-bottom: 20px; }
}
