:root {
    color-scheme: light;
    font-family: system-ui, "Segoe UI", sans-serif;
    background: #f4eee5;
    color: #182434;
}

* {
    box-sizing: border-box;
}

.auth-body {
    display: grid;
    place-items: center;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 1rem;
}

.auth-backdrop {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
}

.auth-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-card {
    width: min(100%, 21rem);
    padding: 1.5rem;
    border: 1px solid #d9e1ea;
    border-radius: 1rem;
    background: #fffffffa;
    box-shadow: 0 .75rem 2.5rem #1824341c;
}

.auth-card h1 {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.auth-description {
    margin: 0 0 1rem;
    color: #4c5b6d;
    line-height: 1.5;
}

.auth-form,
.auth-field {
    display: grid;
}

.auth-form {
    gap: .9rem;
}

.auth-field {
    gap: .35rem;
}

.auth-field label {
    font-size: .875rem;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    min-height: 2.65rem;
    padding: .55rem .7rem;
    border: 1px solid #8393a6;
    border-radius: .5rem;
    background: #fff;
    color: inherit;
    font: inherit;
}

.auth-submit {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 2.65rem;
    padding: .55rem .8rem;
    border: 0;
    border-radius: .5rem;
    background: #174cad;
    color: #fff;
    font: 650 .9rem system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.auth-submit:hover {
    background: #113b89;
}

.auth-card :focus-visible {
    outline: 2px solid #174cad;
    outline-offset: 3px;
}

.auth-field-error,
.auth-validation {
    color: #a42442;
    font-size: .8125rem;
}

.auth-validation {
    padding: .65rem .75rem;
    border: 1px solid #cf8698;
    border-radius: .5rem;
    background: #fff0f3;
}

.auth-validation ul {
    margin: 0;
    padding-inline-start: 1.1rem;
}

.auth-field .input-validation-error {
    border-color: #a42442;
}

.auth-body .field-validation-valid,
.auth-body .validation-summary-valid {
    display: none;
}

.auth-credit {
    margin-top: 1.15rem;
    padding-top: .9rem;
    border-top: 1px solid #d9e1ea;
    color: #4c5b6d;
    font-size: .8125rem;
    line-height: 1.45;
    text-align: center;
}

.auth-credit a {
    color: #174cad;
    font-weight: 700;
    text-underline-offset: .2em;
}

@media (max-aspect-ratio: 4/5) {
    .auth-backdrop img {
        object-position: 22% center;
    }
}
