/*
 * Archivo (variable: weight 400-700, width 100%-125%) — used only by the
 * login page.
 *
 * SIL Open Font License 1.1 — see ../fonts/Archivo-OFL.txt.
 * Source: https://github.com/Omnibus-Type/Archivo
 *
 * The latin-ext face is only fetched when a character in its unicode-range is
 * actually rendered, so it costs nothing for the English UI.
 */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100% 125%;
    font-display: swap;
    src: url('../fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100% 125%;
    font-display: swap;
    src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

.login-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0E0B24;
    background-image: radial-gradient(95% 78% at 88% 46%, #1F1758 0%, #0E0B24 58%);
    padding-inline: 24px;
    padding-block: 56px;
}

@media (min-width: 600px) {
    .login-page {
        padding-inline: 48px;
    }
}

@media (min-width: 900px) {
    .login-page {
        padding-inline: 80px;
        padding-block: 72px;
    }
}

@media (min-width: 1200px) {
    .login-page {
        padding-inline: 112px;
    }
}

.arc-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.32;
}

@media (min-width: 600px) {
    .arc-field {
        opacity: 0.62;
    }
}

@media (min-width: 900px) {
    .arc-field {
        opacity: 1;
    }
}

.login-column {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 404px;
}

@media (min-width: 900px) {
    .login-column {
        max-width: min(100%, 1040px);
    }
}

.brand-band {
    width: 100%;
}

@media (min-width: 900px) {
    .brand-band {
        width: fit-content;
        max-width: 100%;
    }
}

.divider {
    height: 1px;
    background-color: rgba(237, 235, 245, 0.13);
    margin-bottom: 32px;
}

h1 {
    margin: 0 0 16px;
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    font-variation-settings: "wdth" 112;
    letter-spacing: -0.005em;
    line-height: 1.3;
    white-space: normal;
    color: #EDEBF5;
}

@media (min-width: 900px) {
    h1 {
        font-size: clamp(0.9rem, 1.44vw, 1.2rem);
        white-space: nowrap;
    }
}

.subtitle {
    margin: 0 0 36px;
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(237, 235, 245, 0.58);
}

.form-wrap {
    width: 100%;
    max-width: 404px;
}

.error-box {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 4px;
    background-color: rgba(227, 25, 92, 0.12);
    border: 1px solid rgba(227, 25, 92, 0.35);
    color: #FFD9E4;
    font-size: 0.875rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8125rem;
    color: rgba(237, 235, 245, 0.58);
}

.field:focus-within label {
    color: #49B374;
}

.field input {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    color: #EDEBF5;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(237, 235, 245, 0.20);
    border-radius: 4px;
    height: 48px;
    padding: 0 14px;
    font-size: 0.9375rem;
}

.field input:hover {
    border-color: rgba(237, 235, 245, 0.38);
}

.field input:focus {
    outline: none;
    border-color: #49B374;
    border-width: 1.5px;
}

.field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #181341 inset;
    -webkit-text-fill-color: #EDEBF5;
    caret-color: #EDEBF5;
}

button[type="submit"] {
    box-sizing: border-box;
    margin-top: 12px;
    padding: 12.8px 0;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0E0B24;
    background-color: #EDEBF5;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #FFFFFF;
}

button[type="submit"]:focus-visible {
    outline: 2px solid #49B374;
    outline-offset: 3px;
}
