:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", sans-serif;
    background: #f1f5f3;
    color: #17231f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top left, #d9eee6, transparent 40%),
        #f4f7f5;
}

.auth-card {
    width: min(100%, 28rem);
    padding: 2.5rem;
    border: 1px solid #d8e2de;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgb(26 55 45 / 10%);
}

.auth-brand {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 0.9rem;
    background: #123f35;
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
}

.auth-eyebrow {
    margin: 1.5rem 0 0.3rem;
    color: #2d6a5a;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 2rem;
}

.auth-lead,
.auth-note {
    color: #5f6d68;
    line-height: 1.55;
}

form {
    display: grid;
    gap: 0.55rem;
    margin-top: 2rem;
}

label {
    margin-top: 0.55rem;
    font-weight: 650;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid #b9c8c2;
    border-radius: 0.65rem;
    font: inherit;
}

input:focus-visible {
    outline: 3px solid rgb(51 126 105 / 24%);
    border-color: #337e69;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
}

button,
.auth-link {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 0.7rem;
    background: #123f35;
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.auth-link {
    display: inline-block;
}

.field-error,
.validation-summary {
    color: #9d2525;
    font-size: 0.9rem;
}

.validation-summary:empty {
    display: none;
}

.auth-note {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}

.auth-languages {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid #dce5e1;
}

.auth-languages a {
    min-width: 2.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #45625a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
}

.auth-languages a:hover,
.auth-languages a:focus-visible {
    border-color: #8fb1a6;
    outline: none;
}

.auth-languages a.is-current {
    background: #e3f0eb;
    color: #123f35;
}

@media (max-width: 34rem) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}
