* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
}

.auth-shell {
    width: min(100% - 2rem, 34rem);
    margin: 0 auto;
    padding: 4rem 0;
}

.auth-brand {
    margin-bottom: 1.5rem;
}

.auth-brand a {
    color: #142a4f;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-brand p,
.auth-intro {
    color: #5d6879;
}

.auth-card {
    border: 1px solid #d8dfeb;
    border-radius: 1rem;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 1rem 2.5rem rgb(24 44 78 / 8%);
}

h1,
h2 {
    color: #142a4f;
}

h1 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #bac6d7;
    border-radius: 0.55rem;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

button {
    width: 100%;
    margin-top: 1.4rem;
    border: 0;
    border-radius: 0.55rem;
    background: #142a4f;
    color: #fff;
    padding: 0.8rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button.secondary {
    background: #e9eef6;
    color: #142a4f;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 400;
}

.auth-check input {
    margin: 0;
}

.auth-links {
    margin-bottom: 0;
    text-align: center;
}

.auth-links a {
    color: #234f87;
}

.auth-status {
    margin-bottom: 1rem;
    border: 1px solid #bbd7c4;
    border-radius: 0.55rem;
    background: #eef8f1;
    padding: 0.75rem;
}

.auth-error {
    margin: 0.35rem 0 0;
    color: #9d2630;
    font-size: 0.9rem;
}

.auth-secondary-form {
    margin-top: 0.5rem;
}

.auth-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.account-details {
    margin: 0;
}

.account-details div {
    border-bottom: 1px solid #e4e9f0;
    padding: 0.75rem 0;
}

.account-details dt {
    color: #667085;
    font-size: 0.85rem;
}

.account-details dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
}

hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e4e9f0;
}

@media (max-width: 40rem) {
    .auth-shell {
        padding: 2rem 0;
    }

    .auth-card {
        padding: 1.35rem;
    }
}
