@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/Space-Grotesk-subset0.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/Open-Sans-subset0.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
}

:root {
    font-family: "Open Sans", system-ui, sans-serif;
    color: #f7f9ff;
    background: #181e25;
    --accent: #ffaea8;
    --muted: #c7d0de;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgb(13 17 22 / 92%), transparent 30%),
        linear-gradient(110deg, rgb(8 15 27 / 72%), rgb(9 17 30 / 60%)),
        url("../images/ilg-truck.jpg") center 54% / cover no-repeat;
}

.stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: clamp(2rem, 6vh, 5rem) clamp(1.25rem, 6.5vw, 8rem);
}

.glass {
    background: linear-gradient(140deg, rgb(53 65 82 / 81%), rgb(16 22 33 / 76%) 45%, rgb(32 31 42 / 72%));
    border: 1px solid rgb(225 237 255 / 39%);
    border-radius: 1.75rem;
    box-shadow: 0 25px 80px rgb(12 17 27 / 30%), inset 0 1px 0 rgb(255 255 255 / 35%);
    backdrop-filter: blur(19px) saturate(135%);
}

.login { width: min(100%, 31rem); padding: clamp(1.5rem, 4vw, 2.75rem); }

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.6rem;
    font: 700 1.35rem/1 "Space Grotesk", system-ui, sans-serif;
}

.brand img { width: 4.25rem; height: auto; padding: .4rem .6rem; background: #e2e7ec; border-radius: .6rem; }
.brand-accent { color: var(--accent); }

h1, h2 {
    margin: 0;
    font-family: "Space Grotesk", system-ui, sans-serif;
    letter-spacing: -.055em;
    line-height: 1.08;
}

h1 { margin-bottom: 1.75rem; font-size: clamp(2rem, 4.3vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
.intro { margin: .7rem 0 1.65rem; color: var(--muted); line-height: 1.55; }
label { display: block; font-size: .875rem; font-weight: 700; }

.field {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: .4rem 0 1rem;
    padding-inline: .85rem .25rem;
    min-height: 3.25rem;
    border: 1px solid rgb(203 218 240 / 35%);
    border-radius: .75rem;
    color: var(--muted);
    background: linear-gradient(115deg, rgb(10 16 25 / 75%), rgb(32 39 53 / 58%));
    box-shadow: inset 0 2px 6px rgb(0 0 0 / 24%);
}

.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(140 23 27 / 20%); }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
input, button { font: inherit; }

.field input {
    flex: 1;
    min-width: 0;
    min-height: 3.125rem;
    padding: 0 .4rem 0 0;
    width: 100%;
    border: 0;
    color: #f7f9ff;
    background: transparent;
    outline: none;
}

.field input::placeholder { color: #b3bdcc; opacity: 1; }

.icon-button {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: .6rem;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.icon-button[hidden] { display: none; }
.icon-button:hover, .icon-button[aria-pressed="true"] { background: #44323c; color: var(--accent); }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .2rem 1rem;
    margin: .15rem 0 .9rem;
    font-size: .875rem;
}

.remember { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; font-weight: 600; cursor: pointer; }

.remember input {
    appearance: none;
    display: grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    border: 1px solid #727d8b;
    border-radius: .33rem;
    background: #fff;
    cursor: pointer;
}

.remember input:checked { background: #a83139; border-color: var(--accent); }
.remember input:checked::before {
    content: "";
    width: .3rem;
    height: .57rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg);
}

a { color: var(--accent); font-weight: 700; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
.form-options a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.primary {
    width: 100%;
    min-height: 3.3rem;
    padding: .75rem 1rem;
    border: 1px solid #741114;
    border-radius: .75rem;
    background: linear-gradient(115deg, #a1252b, #7e1117);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgb(119 15 19 / 23%);
    cursor: pointer;
}

.primary:hover { background: #721015; }
:is(a, button, .remember input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
 .field > svg { box-sizing: content-box; padding-right: .7rem; border-right: 1px solid #ffffff30; color: #e2b9bc; }
.field:focus-within > svg { color: var(--accent); }
.caps-warning { margin: -.35rem 0 .5rem; color: #ffe0a5; font-size: .875rem; }
.caps-warning:empty { margin: 0; }
.signature { display: inline-flex; align-items: center; gap: .7rem; }
.signature strong { font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.signature span { color: #d2d8e1; border-left: 1px solid #ffffff55; padding-left: .7rem; }

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .15rem 1rem;
    margin-inline: clamp(1.25rem, 6.5vw, 8rem);
    padding: .5rem 0 max(.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgb(255 255 255 / 32%);
    color: #fff;
    font-size: .875rem;
}

.footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.footer a:hover { text-decoration: underline; }
.footer a:focus-visible { outline-color: #fff; }

.modal { color: #f7f9ff; width: min(29rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 3.1rem 1.65rem 1.65rem; }
.modal::backdrop { background: rgb(14 19 26 / 64%); }
.modal .close { position: absolute; right: .6rem; top: .45rem; }

@media (max-width: 43rem) {
    .stage { justify-items: center; padding-top: clamp(6.5rem, 18svh, 12rem); }
    body::before { background-position: 65% center; }
    .footer { justify-content: center; }
    .wide-break { display: none; }
}

@media (max-width: 23rem) {
    .form-options { gap: 0 1rem; }
    .login { padding-inline: 1.15rem; }
}

@media (forced-colors: active) {
    .remember input { appearance: auto; }
}
