/* MapleClinic head shell styles (sign-in, activation). Module styles live in SPC.Blazor.CLINIC; the layout's own rules are in
   MainLayout.razor.css. These are global because the PIN pad styles MudButton roots, which scoped
   CSS cannot reach. */
html, body {
    margin: 0;
    padding: 0;
    /* The family face on EVERYTHING, not just MudBlazor components: without it plain markup (page
       titles, HR's clock-in page) fell back to the browser default — Times on an iPhone. */
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

/* /signin, /activate — centred card on a bare page. */
.signin-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

.signin-card {
    width: 100%;
    max-width: 460px;
}

.muted {
    color: var(--mud-palette-text-secondary);
}

/* PIN pad — six fixed slots (the PIN policy is exactly 6 digits), large tap targets for gloved
   hands on a shop-floor tablet. */
.pin-display {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--mud-palette-background-gray, rgba(0, 0, 0, .04));
}

.pin-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .85rem;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-text-secondary, #888);
    transition: background 120ms ease, transform 120ms ease;
}

.pin-dot.filled {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    transform: scale(1.1);
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 280px;
    margin: 0 auto;
}

.pin-btn {
    min-height: 56px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.signin-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

/* The real PIN input stays in the form (typing works, and a plain form post signs in even when the
   live connection has dropped) but is not drawn — the dots above are its display. Visually hidden,
   not display:none, so it can still take focus and keystrokes. */
.signin-pin-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.signin-form { position: relative; }

.signin-pin-submit {
    padding: .6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text, #fff);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.signin-pin-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* FocusOnNavigate (Routes.razor) moves focus to the page <h1> on every navigation so screen-reader
   users land on the heading; browsers then paint a focus box round the title (very visible on iPhone).
   The heading is not a control, so no ring — the Maple-family rule MapleCoffee carries too. */
h1:focus,
h1:focus-visible {
    outline: none;
}
