:root {
    color-scheme: light;
    --green-950: #082512;
    --green-900: #0b341b;
    --green-800: #104b28;
    --green-700: #176437;
    --gold: #c59a4b;
    --ink: #102018;
    --muted: #5d6962;
    --line: #d8e2dc;
    --surface: #ffffff;
    --surface-soft: #f5f8f6;
    --danger: #a33a2a;
    --shadow: 0 24px 70px rgba(3, 18, 10, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 16%, rgba(197, 154, 75, 0.16), transparent 28%),
        linear-gradient(135deg, var(--green-950), var(--green-800));
}

a {
    color: var(--green-700);
    font-weight: 750;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 560px);
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(24px, 4vw, 48px);
}

.login-card {
    width: 100%;
    padding: 30px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.site-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mark-box {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green-800);
    border-radius: 8px;
    font-weight: 900;
}

.site-mark strong,
.site-mark span,
.smartcard-stub span {
    display: block;
}

.site-mark strong {
    font-size: 1.08rem;
}

.site-mark span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.88rem;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: 0;
}

.card-heading {
    margin-bottom: 22px;
}

.card-heading p,
.system-panel p,
.capability-list {
    color: var(--muted);
    line-height: 1.5;
}

.alert {
    margin-bottom: 16px;
    padding: 11px 13px;
    color: var(--danger);
    background: #fff4f1;
    border: 1px solid #f0cbc3;
    border-radius: 6px;
    font-weight: 750;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    font-size: 0.9rem;
    font-weight: 800;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #b8c6be;
    border-radius: 6px;
}

.login-form input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(23, 100, 55, 0.17);
    outline: none;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 7px 0 5px;
    font-size: 0.9rem;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--green-700);
}

.primary-action {
    min-height: 48px;
    color: #fff;
    background: var(--green-800);
    border: 1px solid var(--green-900);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 850;
}

.primary-action:hover {
    background: var(--green-700);
}

.smartcard-stub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px dashed #b8c6be;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.card-chip {
    flex: 0 0 auto;
    width: 28px;
    height: 20px;
    border: 2px solid #95a39b;
    border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 42%, #95a39b 42%, #95a39b 49%, transparent 49%),
        linear-gradient(180deg, transparent 47%, #95a39b 47%, #95a39b 54%, transparent 54%);
}

.system-panel {
    color: #fff;
}

.system-panel .eyebrow {
    color: #f0d18c;
}

.system-panel h2 {
    max-width: 560px;
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    line-height: 1.03;
    letter-spacing: 0;
}

.system-panel p {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
}

.capability-list {
    display: grid;
    gap: 10px;
    max-width: 540px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.capability-list li {
    padding: 12px 0 12px 22px;
    color: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.capability-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.support-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.support-footer span {
    color: #fff;
    font-weight: 850;
}

.support-footer a {
    color: #fff;
}

@media (max-width: 920px) {
    .login-page {
        grid-template-columns: minmax(0, 520px);
        align-content: center;
    }

    .system-panel {
        order: -1;
    }

    .system-panel h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 560px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 22px;
    }

    .form-row,
    .support-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
