/* The identity forms' stylesheet (nxttechnology/Nxt.Atrium#1483, ruling D5): what goes INSIDE a host's card on the
   sign-in and password-change stages. The host declares it beside the shared palette.css and controls.css:

       _content/Nxt.Identity.Presentation.Blazor/css/identity-forms.css

   Moved from Atrium's shell.css. The card itself (.nxt-card*), its ground (.nxt-signin), its station chip and its footer
   link (.nxt-link) stayed there. The outlined message was .nxt-card__message there and is .nxt-signin__message here
   (ruling D2). Every colour is an --nxt-* token of the shared palette. The buttons and inputs are the shared .nxt-btn and
   element rules; nothing here re-declares a selector controls.css owns. */

/* ONE SIZE FOR EVERY CODE A PHONE SCANS (nxttechnology/Nxt.Atrium#1695, D1): the sign-in card's code and My phones'
   Enrolment code (identity-administration.css) are the same square, so a camera that reads one at arm's length reads the
   other. Defined here, once; PhoneCodeStyles.xaml is the WPF twin. */
:root {
    --nxt-identity-code-side: 260px;
    --nxt-identity-code-padding: 14px;
}

/* THE STAGE IS A FLEX COLUMN THAT FILLS THE CARD'S BODY, so the results' `margin-top: auto` puts them at the foot of the
   card, as the WPF form's * row does. A wrapper that sizes to its content raises them to under the button. */
.nxt-signin__stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* A MESSAGE ON THE FORM IS OUTLINED, NEVER FILLED (issue 10 FR-006): a bordered box with 8 padding and the semantic colour
   on the border AND the text. A filled banner at 375 wide swallows the card. */
.nxt-signin__message {
    padding: 8px;
    border: var(--nxt-border-thickness) solid var(--nxt-border-primary);
    border-radius: var(--nxt-corner-radius);
}

.nxt-signin__message--warning { border-color: var(--nxt-semantic-warning); color: var(--nxt-semantic-warning); }
.nxt-signin__message--error   { border-color: var(--nxt-semantic-error);   color: var(--nxt-semantic-error); }

/* A fact about the STORE, above the form it explains — because when the form is withheld that sentence is
   the reason there are no boxes below it. */
.nxt-signin__notice { margin-top: 14px; }

/* Whose password this is, and the rule stated before it can be broken. Both above the form they govern. */
.nxt-signin__intro { margin-top: 14px; }
.nxt-signin__intro > * + * { margin-top: 8px; }

/* #655: whose password this is, as a well. The ids are trimmed, never wrapped. */
.nxt-signin__account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 5px;
    background: var(--nxt-surface-standard);
    white-space: nowrap;
}
.nxt-signin__account .nxt-signin__glyph { flex-basis: 16px; width: 16px; height: 16px; margin: 0; color: var(--nxt-text-secondary); }
.nxt-signin__account-name { font-weight: 500; }
.nxt-signin__account-ids  { overflow: hidden; text-overflow: ellipsis; font-family: var(--nxt-font-mono); font-size: 12.5px; color: var(--nxt-text-secondary); }
.nxt-signin__guidance { margin: 0; color: var(--nxt-text-secondary); }

.nxt-signin__form  { margin-top: 26px; }
.nxt-signin__label { display: block; margin: 0 0 4px 0; }

/* 35, deliberately taller than --nxt-control-height (26). The reference sets 35 on this screen and only
   this screen: it is the one surface an operator touches before their gloves are off. */
.nxt-signin__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 35px;
    margin: 0 0 10px 0;
}

/* #656: why the Organisation box was filled in. */
.nxt-signin__field-hint { margin: -5px 0 10px 0; font-size: 12px; color: var(--nxt-text-secondary); }

/* #654: a box a refusal is about gets an error edge, and the sentence sits right under it. The password field is a
   wrapper, so its entry takes the edge. Caps Lock is the same line in the warning colour. */
.nxt-signin__input--refused:not(.nxt-reveal),
.nxt-signin__input--refused .nxt-reveal__entry { border: 1.5px solid var(--nxt-semantic-error); }

.nxt-signin__field-line {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: -5px 0 10px 0;
    font-size: 12.5px;
}

.nxt-signin__field-line--refusal { color: var(--nxt-semantic-error-strong); }
.nxt-signin__field-line--caps    { color: var(--nxt-semantic-warning-strong); font-size: 12px; }
.nxt-signin__field-line--met     { color: var(--nxt-semantic-active-strong); font-size: 12px; }
.nxt-signin__field-line--unmet   { color: var(--nxt-text-secondary); font-size: 12px; }
.nxt-signin__glyph               { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 1px; }
.nxt-signin__rules               { list-style: none; margin: 2px 0 10px 0; padding: 0; }
.nxt-signin__rules .nxt-signin__field-line { margin: 4px 0 0 0; }

/* #655: the card's width, 44 tall. */
.nxt-signin__submit { display: block; width: 100%; height: 44px; margin: 22px 0 0 0; }

/* WHY THE BUTTON IS OFF, ON THE CARD (issue 10 FR-007). It was a `title` here, which is invisible on a
   touchscreen, invisible without a pointer, and invisible in a screenshot sent to support. */
.nxt-signin__disabled-reason {
    margin: 8px 0 0 0;
    text-align: center;
    font-size: var(--nxt-font-size-small);
    color: var(--nxt-text-secondary);
}

/* The result of what you just did, below the button and at the FOOT of the body — the WPF twin's `*`
   spacer row, which is what keeps these sentences in one place across every state. */
.nxt-signin__results { margin-top: auto; margin-bottom: 14px; padding-top: 14px; }
.nxt-signin__results > * + * { margin-top: 8px; }

/* #655 — Forgot your password is a stage of the sign-in card, in place of the form: no scrim, no panel, no title of its
   own. The card's caption says what it is. */
.nxt-recover { margin-top: 14px; }

.nxt-recover__explanation { margin: 0; }
.nxt-recover__caption {
    margin: 16px 0 6px 0;
    font-family: var(--nxt-font-mono);
    font-size: 10.5px;
    color: var(--nxt-text-secondary);
}

.nxt-recover__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--nxt-border-primary);
    border-radius: 8px;
    overflow: hidden;
}
.nxt-recover__who   { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--nxt-border-row); }
.nxt-recover__who:last-child { border-bottom: 0; }
.nxt-recover__name  { font-weight: 500; }
.nxt-recover__where { margin-left: auto; font-size: 12.5px; color: var(--nxt-text-secondary); }

/* FR-009 — never an empty box; the sentence is outlined, like every message on the card. */
.nxt-recover__nothing { margin-top: 0; }

/* #324 — the recovery at the machine, under the list; the twin of the WPF view's small secondary line. */
.nxt-recover__at-the-machine { margin: 10px 0 0 0; font-size: var(--nxt-font-size-small); color: var(--nxt-text-secondary); }

/* #655 — Back to sign in, the card's width. */
.nxt-recover__back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin: 18px 0 14px 0;
}
.nxt-recover__back .nxt-signin__glyph { flex-basis: 16px; width: 16px; height: 16px; margin: 0; }

/* #411 - the phone panel on the sign-in card (PhoneSignInPanel.razor). Dark modules on the light panel whatever the
   theme, because a phone's camera reads dark on light. */
.nxt-signin__phone { margin-top: 16px; text-align: center; }
.nxt-signin__instruction { margin: 0 0 12px 0; }

/* #657, #1695: the one code size with its quiet zone inside a hairline, radius 5; dark on light whatever the theme. */
.nxt-signin__code-frame {
    box-sizing: border-box;
    width: var(--nxt-identity-code-side);
    height: var(--nxt-identity-code-side);
    margin: 0 auto;
    padding: var(--nxt-identity-code-padding);
    border: 1px solid var(--nxt-border-primary);
    border-radius: 5px;
    background: var(--nxt-bg-panel);
}
.nxt-signin__code { display: block; width: 100%; height: 100%; }
.nxt-signin__code path { fill: var(--nxt-bg-black); }

/* #657: the code's time left. */
.nxt-signin__countdown  { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--nxt-text-secondary); }
.nxt-signin__time-left  { font-family: var(--nxt-font-mono); color: var(--nxt-text-primary); }
.nxt-signin__time-bar   { width: 80px; height: 3px; margin-left: 2px; accent-color: var(--nxt-accent-primary); }

/* #657: the check the phone asks for, on the card. */
.nxt-signin__station-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0 0;
    padding: 12px 14px;
    border-radius: 5px;
    background: var(--nxt-surface-standard);
    text-align: left;
}
.nxt-signin__station-check .nxt-signin__glyph { flex-basis: 16px; width: 16px; height: 16px; color: var(--nxt-text-secondary); }
.nxt-signin__station { font-family: var(--nxt-font-mono); }

/* #33: a button that says why it is off, on hover. A disabled button takes no pointer events, so the wrapper around it
   carries the reason as its title; the button lets the pointer through to it. */
.nxt-reasoned-button { display: inline-block; }
.nxt-reasoned-button > button:disabled { pointer-events: none; }
.nxt-reasoned-button--block { display: block; }
.nxt-reasoned-button--block > button { width: 100%; }
