:root {
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #26343b;
    background: #dfdfdf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: clamp(1rem, 8vh, 5rem) 1rem 2rem;
}

.auth-card {
    width: 100%;
    max-width: 27rem;
    margin-inline: auto;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #abb9bd;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgb(38 52 59 / 16%);
}

.auth-header {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #fff;
    background: #515763;
}

.auth-header img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 4.5rem;
    object-fit: contain;
    margin: 0 auto 0.5rem;
}

.auth-header h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 650;
}

.auth-content {
    padding: 1.5rem clamp(1rem, 5vw, 1.75rem);
}

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

.auth-form {
    gap: 1rem;
}

.auth-field {
    gap: 0.375rem;
}

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

.auth-field input {
    width: 100%;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid #87979b;
    border-radius: 0.25rem;
    background: #fff;
    color: inherit;
}

input,
button {
    font: inherit;
}

.auth-button {
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background: #007657;
    color: #fff;
    font-weight: 650;
    cursor: pointer;
}

.auth-button:hover {
    background: #005c44;
}

.auth-button-secondary {
    border-color: #007657;
    background: transparent;
    color: #006148;
}

.auth-button-secondary:hover {
    background: #e5f1ec;
}

:focus-visible {
    outline: 2px solid #006148;
    outline-offset: 2px;
}

.auth-message {
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.25rem;
    background: #e4f1ed;
    color: #174e43;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.auth-message-error {
    background: #f8e8e8;
    color: #86252b;
}

.auth-content > .auth-message {
    margin-bottom: 1rem;
}

.auth-separator {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid #cbd3d5;
}

.auth-navigation {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.auth-navigation a {
    color: #006148;
    text-underline-offset: 0.15em;
}

.auth-qr {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
}

.auth-code,
.auth-recovery-codes {
    overflow-wrap: anywhere;
}

.auth-recovery-codes {
    padding-left: 1.5rem;
}
