:root {
    color-scheme: light;
    --navy: #00326d;
    --navy-dark: #00285a;
    --navy-deep: #00224f;
    --blue: #04a4dc;
    --blue-dark: #0088c2;
    --green: #18b85a;
    --background: #f4f8fb;
    --border: #d7e2ea;
    --danger: #d52b38;
    --text: #123055;
    --muted: #60748a;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
}

body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    flex-direction: column;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 2rem, 73rem);
    margin-inline: auto;
}

.utility-bar {
    min-height: 2rem;
    background: var(--navy-deep);
    color: #b9d3ea;
    font-size: .72rem;
}

.utility-content,
.utility-content nav {
    display: flex;
    align-items: center;
}

.utility-content {
    min-height: 2rem;
    justify-content: space-between;
}

.utility-content nav {
    gap: 1.25rem;
}

.main-header {
    min-height: 4.75rem;
    background: var(--navy);
    border-bottom: 4px solid var(--blue);
    color: var(--white);
}

.header-content {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: block;
    width: 8.75rem;
    height: auto;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
}

.language-switcher a {
    display: grid;
    min-width: 2rem;
    min-height: 2rem;
    padding: .25rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #c7ddef;
    font-size: .7rem;
    font-weight: 800;
    place-items: center;
    text-decoration: none;
}

.language-switcher a:hover {
    border-color: rgb(255 255 255 / 25%);
    color: var(--white);
}

.language-switcher a[aria-current="page"] {
    border-color: #58cef1;
    background: rgb(4 164 220 / 18%);
    color: var(--white);
}

.header-status {
    display: flex;
    padding: .55rem .8rem;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: .3rem;
    align-items: center;
    color: #dceafa;
    font-size: .78rem;
    font-weight: 700;
    gap: .5rem;
}

.status-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 .2rem rgb(24 184 90 / 18%);
}

.page-shell {
    display: grid;
    width: 100%;
    padding: clamp(2rem, 6vw, 5.5rem) 1rem;
    flex: 1;
    place-items: center;
}

.auth-shell {
    display: grid;
    width: min(100%, 61rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: .4rem;
    background: var(--white);
    box-shadow: 0 1.25rem 3.5rem rgb(0 50 109 / 12%);
    grid-template-columns: minmax(17rem, .86fr) minmax(24rem, 1.14fr);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(150deg, #003b7d 0%, #002b64 68%, #002653 100%);
    color: var(--white);
}

.auth-aside::before,
.auth-aside::after {
    position: absolute;
    border: 1px solid rgb(4 164 220 / 24%);
    border-radius: 50%;
    content: "";
}

.auth-aside::before {
    right: -7rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
}

.auth-aside::after {
    right: -3rem;
    bottom: -1rem;
    width: 10rem;
    height: 10rem;
    background: rgb(4 164 220 / 8%);
}

.eyebrow,
.form-kicker {
    display: block;
    margin-bottom: .8rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.eyebrow {
    color: #58cef1;
}

.aside-title {
    max-width: 20rem;
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.14;
}

.auth-aside > p:not(.aside-title) {
    max-width: 23rem;
    margin: 0;
    color: #c7ddef;
    font-size: .95rem;
}

.steps {
    position: relative;
    z-index: 1;
    display: grid;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    gap: 1rem;
}

.steps li {
    display: flex;
    align-items: center;
    color: #e8f4fc;
    font-size: .86rem;
    font-weight: 700;
    gap: .75rem;
}

.steps span {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid #20b2e5;
    border-radius: 50%;
    background: rgb(4 164 220 / 14%);
    color: #72d7f5;
    font-size: .75rem;
    place-items: center;
}

.auth-card {
    padding: clamp(2rem, 6vw, 4rem);
}

.form-kicker {
    color: var(--blue-dark);
}

h1 {
    margin: 0 0 .7rem;
    color: var(--navy);
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1.16;
}

.intro,
.support {
    color: var(--muted);
}

.intro {
    margin: 0 0 1.8rem;
    font-size: .95rem;
}

.support {
    margin: 1.35rem 0 0;
    font-size: .78rem;
    text-align: center;
}

.field {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: .4rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 800;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    min-height: 3.15rem;
    padding: .75rem .9rem;
    border: 1px solid #b8c9d6;
    border-radius: .25rem;
    background: var(--white);
    color: var(--text);
    font: inherit;
}

input::placeholder {
    color: #8a9aab;
}

input:hover {
    border-color: #7ea2ba;
}

input:focus-visible,
.button:focus-visible,
.logo:focus-visible,
.language-switcher a:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgb(4 164 220 / 32%);
    outline-offset: 2px;
}

.button {
    display: flex;
    width: 100%;
    min-height: 3.15rem;
    margin-top: .4rem;
    padding: .75rem 1rem;
    border: 0;
    border-radius: .25rem;
    background: var(--blue);
    box-shadow: 0 .35rem .8rem rgb(4 164 220 / 20%);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    text-align: center;
    transition: background-color .16s ease, transform .16s ease;
}

.button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.button:disabled {
    background: var(--blue-dark);
    cursor: wait;
    opacity: .86;
    transform: none;
}

.button-spinner {
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgb(255 255 255 / 45%);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: progress-spin .7s linear infinite;
    flex: 0 0 auto;
}

.button-spinner[hidden] {
    display: none;
}

@keyframes progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.button-link {
    margin-top: 1.25rem;
    text-decoration: none;
}

.registration {
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
}

.registration a {
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.registration a:hover {
    color: var(--navy);
}

.security-note {
    display: flex;
    margin-top: 1.2rem;
    padding: .8rem;
    border: 1px solid #ccebd9;
    border-radius: .25rem;
    align-items: flex-start;
    background: #f1fbf5;
    color: #35644a;
    gap: .65rem;
}

.security-note p {
    margin: 0;
    font-size: .75rem;
}

.security-icon {
    display: grid;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: .7rem;
    flex: 0 0 auto;
    place-items: center;
}

.alert {
    margin: 0 0 1.25rem;
    padding: .8rem .9rem;
    border-left: 4px solid var(--danger);
    background: #fff0f1;
    color: #801923;
    font-size: .86rem;
}

.auth-shell-compact {
    width: min(100%, 32rem);
    grid-template-columns: 1fr;
}

.site-footer {
    background: var(--navy);
    color: #bdd2e7;
}

.footer-content {
    display: grid;
    padding-block: 2.25rem;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
}

.footer-content section {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
}

.footer-logo {
    margin-bottom: .35rem;
}

.footer-logo .logo-image {
    width: 7.5rem;
}

.footer-content h2 {
    margin: .25rem 0 .45rem;
    color: var(--white);
    font-size: .74rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-content p,
.footer-content a {
    margin: 0;
    color: #bdd2e7;
    font-size: .76rem;
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    padding-block: .8rem;
    background: var(--navy-dark);
    color: #8eb0ce;
    font-size: .68rem;
}

@media (max-width: 45rem) {
    .utility-content nav {
        display: none;
    }

    .utility-content {
        justify-content: center;
    }

    .header-status {
        display: none;
    }

    .language-switcher {
        gap: .1rem;
    }

    .language-switcher a {
        min-width: 1.65rem;
        min-height: 1.8rem;
        font-size: .62rem;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: 1.7rem;
    }

    .aside-title {
        font-size: 1.55rem;
    }

    .steps {
        display: none;
    }

    .auth-card {
        padding: 1.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-content section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 28rem) {
    .container {
        width: min(100% - 1.5rem, 73rem);
    }

    .main-header,
    .header-content {
        min-height: 4.1rem;
    }

    .logo-image {
        width: 7.25rem;
    }

    .language-switcher {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .logo-image {
        width: 7.8rem;
    }

    .page-shell {
        padding: 1.25rem .75rem 2rem;
    }

    .auth-aside,
    .auth-card {
        padding: 1.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-content section:first-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .button-spinner {
        animation: none;
        transition: none;
    }
}
