/* App-specific styles layered on top of the design system in ecf-portal.css.
   Keep this file small — anything reusable belongs in the design system. */

/* ── the signed-out shell ─────────────────────────────────────────────────
   Sign in, access denied and the error page render without the sidebar, so
   they get a centred column against the brand purple. */
.authshell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-6);
    background: var(--color-accent-900);
}

.authcard {
    width: min(400px, 100%);
    background: var(--color-surface);
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
}

.authlogo {
    width: 190px;
    height: auto;
    margin: 0 auto var(--space-6);
}

.authcard h1 {
    font-size: 22px;
    margin-bottom: var(--space-4);
}

.authcard .field {
    margin-bottom: var(--space-3);
}

.authcard .btn-primary {
    width: 100%;
    margin-top: var(--space-2);
}

/* Sign In With Microsoft, above the password form, and the rule that separates the two.
   Full width like Sign In, so the two ways in read as a pair. */
.authcard .authms {
    width: 100%;
    justify-content: center;
    gap: 10px;
}

.authsep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: var(--space-4) 0;
    font-size: 12px;
    color: var(--color-neutral-700);
}

.authsep::before,
.authsep::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--color-neutral-300);
}

/* Validation summary and per-field errors. */
.formerror {
    background: #fdf6f6;
    border-left: 3px solid #c73a3a;
    color: #8f2b2b;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: var(--space-3);
    border-radius: var(--radius-sm);
}

/* The same block for something that went right. Shaped like .formerror on purpose — it
   appears in the same place, for the same reason, and only the colour says which it is. */
.formok {
    background: #f2f8f3;
    border-left: 3px solid #3a7d4a;
    color: #2b5c36;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: var(--space-3);
    border-radius: var(--radius-sm);
}

.formerror ul {
    margin: 0;
    padding-left: 18px;
}

.formerror ul:only-child li:only-child {
    list-style: none;
    margin-left: -18px;
}

.field-validation-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #c73a3a;
}

.input.input-validation-error {
    border-color: #c73a3a;
}

/* Remember-me row. */
.checkrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: var(--space-3);
}

.checkrow input {
    width: 15px;
    height: 15px;
}

/* ── placeholder sections ─────────────────────────────────────────────────
   Each top-level nav destination exists but has no content yet. */
.ph-note {
    max-width: 62ch;
    font-size: 14px;
    color: var(--color-neutral-800);
    margin-bottom: var(--space-6);
}
