/* ==========================================================================
   Dataman — auth.css
   Sign-in, two-factor challenge, password reset, and first-run setup.

   These screens have no top bar and no sidebar: a single centred card on the
   canvas. They are the only part of the application a person sees before they
   are trusted, so they stay deliberately plain.
   ========================================================================== */

.dm-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem 3rem;
}

/* The parent company's logo. Its artwork carries its own uneven grey
   gradient, so a broad grey frame gives it a clean edge against the canvas. */
.dm-auth__logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border: 12px solid #dfdfdf;
    border-radius: 25px;
}

.dm-auth__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--dm-ink);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.dm-auth__brand i { color: var(--dm-navy); font-size: 1.375rem; }

.dm-auth__card {
    width: 100%;
    max-width: 400px;
    padding: 1.75rem;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    box-shadow: var(--dm-shadow);
}

/* Setup screens carry more explanation, so they get more room. */
.dm-auth__card--wide { max-width: 520px; }

.dm-auth__title {
    margin: 0 0 0.25rem;
    font-size: var(--dm-text-lg);
    font-weight: 600;
}

.dm-auth__lead {
    margin: 0 0 1.25rem;
    color: var(--dm-ink-soft);
    font-size: var(--dm-text-sm);
}

.dm-auth__foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    color: var(--dm-ink-muted);
    font-size: var(--dm-text-xs);
    text-align: center;
    border-top: 1px solid var(--dm-border);
}

.dm-auth__note {
    max-width: 400px;
    margin-top: 1.25rem;
    color: var(--dm-ink-muted);
    font-size: var(--dm-text-xs);
    text-align: center;
}

/* Full-width submit button on every auth form. */
.dm-auth__submit {
    justify-content: center;
    width: 100%;
    height: 38px;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Setup progress
   Three steps, so people know how much is left before they can get in.
   ========================================================================== */

.dm-steps {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.dm-steps__item {
    flex: 1 1 0;
    padding-top: 0.375rem;
    color: var(--dm-ink-muted);
    font-size: var(--dm-text-xs);
    border-top: 3px solid var(--dm-border);
}

.dm-steps__item.is-current { color: var(--dm-navy); font-weight: 600; border-top-color: var(--dm-navy); }
.dm-steps__item.is-done { color: var(--dm-success); border-top-color: var(--dm-success); }

/* ==========================================================================
   Authenticator enrolment
   ========================================================================== */

.dm-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
}

/* Fortify returns an SVG sized for a light background; hold it to something
   a phone camera can actually focus on. */
.dm-qr svg { width: 180px; height: 180px; }

/* The typed-in alternative, for anyone whose camera will not cooperate. */
.dm-secret {
    padding: 0.5rem 0.625rem;
    color: var(--dm-ink);
    font-family: var(--dm-font-mono);
    font-size: var(--dm-text-sm);
    letter-spacing: 0.08em;
    word-break: break-all;
    background: var(--dm-canvas);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
}

/* Six-digit code entry — wide, monospaced, unmistakably a code field. */
.dm-code-input {
    font-family: var(--dm-font-mono);
    font-size: 1.25rem;
    letter-spacing: 0.4em;
    text-align: center;
}

/* ==========================================================================
   Recovery codes
   ========================================================================== */

.dm-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem 1rem;
    padding: 0.875rem 1rem;
    background: var(--dm-canvas);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
}

.dm-codes li {
    font-family: var(--dm-font-mono);
    font-size: var(--dm-text-sm);
    letter-spacing: 0.04em;
    list-style: none;
}

@media (max-width: 400px) {
    .dm-codes { grid-template-columns: 1fr; }
}
