:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: #090a0b;
    color: #f7f4ef;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
}

button,
input {
    font: inherit;
}

a {
    color: #d5a15f;
    text-underline-offset: 0.25em;
    transition: color 160ms ease;
}

a:hover {
    color: #f0c27b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgb(230 172 94 / 75%);
    outline-offset: 3px;
}

.login-page {
    background: #090a0b url("../images/login-background.png") center / cover fixed no-repeat;
}

.login-page::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(4 5 6 / 26%) 0%, rgb(4 5 6 / 48%) 58%, rgb(4 5 6 / 82%) 100%),
        radial-gradient(circle at center, rgb(10 11 12 / 16%) 0%, rgb(4 5 6 / 48%) 100%);
    content: "";
}

.page-shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100svh;
    grid-template-rows: minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr);
    align-items: center;
    justify-items: center;
    gap: clamp(1.5rem, 3vh, 2.75rem);
    padding: clamp(1.25rem, 4vw, 3.5rem);
}

.brand {
    align-self: end;
    text-align: center;
    text-shadow: 0 2px 28px rgb(0 0 0 / 85%);
}

.brand__logo {
    display: block;
    width: clamp(9rem, 15vw, 13rem);
    height: auto;
    margin: 0 auto 0.85rem;
    filter: drop-shadow(0 0.75rem 1.5rem rgb(0 0 0 / 55%));
}

.brand__overline,
.section-label {
    margin: 0 0 0.75rem;
    color: #d7a25f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand h1 {
    margin: 0;
    font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: clamp(0.12em, 0.9vw, 0.24em);
    line-height: 1;
    text-transform: uppercase;
}

.brand__tagline {
    margin: 1rem 0 0;
    color: rgb(246 241 232 / 78%);
    font-size: clamp(0.72rem, 1.8vw, 0.9rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.login-card {
    width: min(100%, 31rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgb(14 16 18 / 88%), rgb(8 9 11 / 78%));
    box-shadow: 0 1.75rem 5rem rgb(0 0 0 / 52%);
    backdrop-filter: blur(16px) saturate(112%);
}

.login-card__heading {
    margin-bottom: 1.75rem;
    text-align: center;
}

.login-card__heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 600;
}

.login-card__heading > p:last-child {
    margin: 0.55rem 0 0;
    color: #aaa8a4;
    font-size: 0.9rem;
}

.form-alert {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgb(176 45 65 / 48%);
    border-radius: 0.6rem;
    background: rgb(105 19 35 / 28%);
    color: #f4dce0;
    font-size: 0.82rem;
}

.login-form,
.field-group {
    display: grid;
    gap: 0.65rem;
}

.login-form {
    gap: 1.2rem;
}

.field-group > label {
    color: #d8d5cf;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.field-control {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 0.55rem;
    background: rgb(255 255 255 / 4%);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.field-control:focus-within {
    border-color: rgb(215 162 95 / 72%);
    background: rgb(255 255 255 / 7%);
    box-shadow: 0 0 0 3px rgb(215 162 95 / 12%);
}

.field-control svg {
    flex: 0 0 auto;
    fill: none;
    stroke: #aaa8a4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.field-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f7f4ef;
}

.field-control input::placeholder {
    color: #8f8e8b;
    opacity: 1;
}

.field-error {
    margin: 0;
    color: #ef9aa7;
    font-size: 0.78rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #d2d0cb;
    font-size: 0.8rem;
}

.check-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.check-option input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #9e1835;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.55rem;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
}

.primary-button {
    width: 100%;
    background: linear-gradient(105deg, #7d142b, #b11d40 52%, #85142e);
    box-shadow: 0 0.75rem 2rem rgb(99 11 31 / 32%);
    color: #fff;
    transition: filter 160ms ease, transform 160ms ease;
}

.primary-button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.site-footer {
    align-self: start;
    text-align: center;
    text-shadow: 0 2px 20px #000;
}

.site-footer p {
    margin: 0;
    color: rgb(246 241 232 / 82%);
    font-size: clamp(0.62rem, 1.5vw, 0.76rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-footer .site-footer__values {
    margin-top: 0.65rem;
    color: rgb(246 241 232 / 52%);
    font-size: 0.58rem;
    letter-spacing: 0.28em;
}

.site-footer__values span {
    color: #b21e3f;
    padding: 0 0.35rem;
}

.simple-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, rgb(125 20 43 / 26%), transparent 40rem),
        #0a0c0e;
}

.simple-card {
    width: min(100%, 42rem);
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 1rem;
    background: #111417;
    box-shadow: 0 2rem 6rem rgb(0 0 0 / 35%);
}

.simple-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 7vw, 4rem);
}

.simple-card p:not(.brand__overline) {
    margin: 1.2rem 0 2rem;
    color: #bdb9b1;
    line-height: 1.7;
}

.secondary-button {
    min-width: 9rem;
    padding: 0.8rem 1.25rem;
    border: 1px solid rgb(215 162 95 / 55%);
    background: transparent;
    color: #e8bc7f;
}

@media (max-width: 40rem) {
    .login-page {
        min-height: 100svh;
        background-position: 43% center;
        background-attachment: scroll;
    }

    .page-shell {
        grid-template-rows: auto auto auto;
        align-content: center;
        gap: clamp(0.65rem, 2svh, 1.25rem);
        padding: clamp(0.75rem, 2svh, 1.25rem) 1rem;
    }

    .brand,
    .site-footer {
        align-self: auto;
    }

    .brand__tagline {
        margin-top: 0.5rem;
        letter-spacing: 0.16em;
    }

    .brand__logo {
        width: clamp(3.5rem, 13svh, 7rem);
        margin-bottom: 0.5rem;
    }

    .brand__overline,
    .login-card .section-label {
        margin-bottom: 0.5rem;
    }

    .brand h1 {
        font-size: clamp(1.35rem, 6.2vw, 2rem);
        letter-spacing: 0.1em;
    }

    .login-card {
        padding: 1rem;
        backdrop-filter: blur(12px);
    }

    .login-card__heading {
        margin-bottom: 1rem;
    }

    .login-card__heading h2 {
        font-size: 1.45rem;
    }

    .login-card__heading > p:last-child {
        font-size: 0.8rem;
    }

    .login-form {
        gap: 0.75rem;
    }

    .field-group {
        gap: 0.4rem;
    }

    .field-control,
    .login-form .primary-button {
        min-height: 2.75rem;
    }

    .field-control input {
        font-size: 1rem;
    }

    .form-options {
        flex-wrap: wrap;
        gap: 0 0.5rem;
        font-size: 0.75rem;
    }

    .form-options > * {
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
    }

    .site-footer p {
        line-height: 1.6;
        letter-spacing: 0.12em;
    }

    .site-footer .site-footer__values {
        margin-top: 0.25rem;
        letter-spacing: 0.16em;
    }
}

@media (max-width: 40rem) and (max-height: 38rem) {
    .page-shell {
        gap: 0.5rem;
        padding-block: 0.5rem;
    }

    .brand__logo {
        width: 3.5rem;
    }

    .login-card__heading {
        margin-bottom: 0.65rem;
    }

    .login-form {
        gap: 0.5rem;
    }

    .login-card {
        padding: 0.75rem;
    }
}

@media (max-height: 48rem) and (min-width: 40.01rem) {
    .page-shell {
        grid-template-rows: auto auto auto;
        gap: 1rem;
        padding-block: 1.5rem;
    }

    .brand,
    .site-footer {
        align-self: auto;
    }

    .login-card {
        padding-block: 1.35rem;
    }
}

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

.activation-link {text-align:center;font-size:.85rem;margin:18px 0 0;color:#bdb5ac}.activation-link a{color:#d8b687}
