/* Colecroft site styles: the stand-alone sign-in pages. Loaded after
   colecroft.css (tokens, base, layout and shared components live there). */

/* The card beside the logo (the layout's .auth-panel holds it). */
.auth-card {
    display: grid;
    gap: 1.2rem;
    padding: 2rem 2rem 1.6rem;
    box-shadow: var(--shadow-2);
}
.auth-card > * { min-width: 0; margin-block: 0; }
.auth-card h1 { font-size: var(--fs-xl); line-height: 1.15; }
.auth-card p { line-height: 1.55; }
.auth-form { display: grid; gap: 1.1rem; }
.auth-form .btn-block + .btn-block { margin-top: -0.3rem; }
.auth-form .btn { white-space: normal; text-align: center; }
.auth-card .alert { margin: 0; }

/* The email and the masked address a page is about: they wrap, they
   don't widen the card. */
.auth-address { overflow-wrap: anywhere; }

/* Secondary links under the form, with a rule above them. */
.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
    font-size: var(--fs-sm);
}
.auth-again { display: flex; justify-content: center; margin-top: -0.4rem; }

/* The code the person types in, large and spaced so it is easy to read
   back against the email. */
.auth-code-input {
    min-height: 3.6rem;
    text-align: center;
    font: 600 var(--fs-xl) / 1.2 var(--font-mono);
    letter-spacing: 0.18em;
}
.auth-code-input::placeholder { letter-spacing: 0.18em; font-weight: 400; }

/* The code shown on the page that asks for it to be entered elsewhere. */
.signin-code {
    margin-block: 0.4rem;
    padding: 1rem;
    text-align: center;
    font: 700 var(--fs-2xl) / 1.1 var(--font-mono);
    letter-spacing: 0.15em;
    background: var(--sign-soft);
    color: var(--ink);
    border-radius: var(--radius);
    user-select: all;
}

/* What the account will have: email, roles, units. */
.auth-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.6rem 1.25rem;
    margin: 0;
    padding: 1rem 1.2rem;
    background: var(--surface-2);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
}
.auth-details dt { font-weight: 600; color: var(--ink-2); }
.auth-details dd { margin: 0; overflow-wrap: anywhere; }
.auth-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }

@media (max-width: 820px) {
    .auth-card { padding: 1.5rem 1.25rem 1.25rem; }
    .signin-code { font-size: var(--fs-xl); }
    .auth-details { grid-template-columns: 1fr; gap: 0.1rem; }
    .auth-details dd + dt { margin-top: 0.5rem; }
}
