/* Sign-in pages — designprompt §9.3au, mastermind-newdesign-v1.pen
 *   /agency-login  Screen 01  `o3SQpo` (Proposal B) · card  Component/Auth/AgencyLoginCard  `iC9NJ`
 *                  states Filled `yoFUQ` · Signing In `LPq6S` · Wrong Password `qV1pl` ·
 *                  No Account `RsovS` · Outside Hours `S2piT1`
 *   /login         Screen 01L `XzJmo` (Proposal A) · form Component/Auth/PortalSignInForm `LaQrY`
 *                  states Filled `FCJeT` · Signing In `FD2G5` · Wrong Password `ujg6t` ·
 *                  Other Agency `Vb1bw`
 * Both views are standalone documents (no app layout), so this file is linked from each <head>.
 * No skeleton twin: nothing on these pages loads. */

.mm-auth, .mm-auth * { margin: 0; padding: 0; box-sizing: border-box; }
.mm-auth {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
}
.mm-auth [hidden] { display: none !important; }

/* Logo mark — the canvas draws an "MM" tile; the live mark is the same logo image the sidebar
   header uses, at the tile's size and corner radius (r = 22% of the side). */
.mm-auth-mark {
    display: block; flex-shrink: 0; object-fit: cover; border: 1px solid rgba(255,255,255,.2);
    /* The PNG is transparent; the tile's gradient keeps the white glyph readable on the white card. */
    background: linear-gradient(135deg, #071810 0%, #1a6e3c 100%);
}
.mm-auth-mark--32 { width: 32px; height: 32px; border-radius: 7px; }
.mm-auth-mark--40 { width: 40px; height: 40px; border-radius: 9px; }
.mm-auth-mark--52 { width: 52px; height: 52px; border-radius: 11px; }

.mm-auth-brand { display: flex; align-items: center; gap: 10px; }
.mm-auth-brand__name { font-size: 15px; font-weight: 700; color: #fff; }

/* ── Shared form pieces (identical anatomy in both components) ─────────────────────────── */
.mm-auth-form { display: flex; flex-direction: column; gap: 24px; }
.mm-auth-fields { display: flex; flex-direction: column; gap: 16px; }
.mm-auth-field { display: flex; flex-direction: column; gap: 6px; }
.mm-auth-field__label { font-size: 12.5px; font-weight: 600; color: #334155; }
.mm-auth-input {
    display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 14px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    color: #94a3b8;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mm-auth-input:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.mm-auth-input.is-invalid { border-color: #fca5a5; }
.mm-auth-input.is-invalid:focus-within { box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.mm-auth-input > svg { width: 16px; height: 16px; }
.mm-auth-input input {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 13.5px; color: #1e293b;
}
.mm-auth-input input::placeholder { color: #94a3b8; opacity: 1; }
.mm-auth-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: #1e293b; }
.mm-auth-eye {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin-right: -6px; flex-shrink: 0;
    border: 0; border-radius: 6px; background: transparent; color: #94a3b8; cursor: pointer;
}
.mm-auth-eye:hover { color: #475569; background: #f8fafc; }
.mm-auth-eye:focus-visible { outline: 2px solid #16a34a; outline-offset: 1px; }
.mm-auth-eye svg { width: 16px; height: 16px; }
.mm-auth-eye .is-off, .mm-auth-eye.is-shown .is-on { display: none; }
.mm-auth-eye.is-shown .is-off { display: block; }

.mm-auth-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    font-size: 12.5px; font-weight: 500; line-height: 1.45;
}
.mm-auth-alert > svg { width: 16px; height: 16px; margin-top: 1px; }
.mm-auth-alert .is-warning-glyph { display: none; }
.mm-auth-alert--warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.mm-auth-alert--warning .is-danger-glyph { display: none; }
.mm-auth-alert--warning .is-warning-glyph { display: block; }

.mm-auth-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 46px; border: 0; border-radius: 8px;
    background: #16a34a; color: #fff;
    font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}
.mm-auth-submit:hover { background: #15803d; }
.mm-auth-submit:focus-visible { outline: 2px solid #15803d; outline-offset: 2px; }
.mm-auth-submit svg { width: 16px; height: 16px; }
.mm-auth-submit .mm-auth-spin { display: none; }
.mm-auth-submit.is-busy { opacity: .85; cursor: progress; }
.mm-auth-submit.is-busy:hover { background: #16a34a; }
.mm-auth-submit.is-busy .mm-auth-spin { display: block; animation: mm-auth-spin .8s linear infinite; }
.mm-auth-submit.is-busy .mm-auth-arrow { display: none; }
@keyframes mm-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mm-auth-submit.is-busy .mm-auth-spin { animation: none; } }

.mm-auth-hint { font-size: 12.5px; color: #64748b; }

/* ── Proposal B · /agency-login ─────────────────────────────────────────────────────────── */
.mm-auth--card {
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    gap: 32px; padding: 36px 48px;
    background: radial-gradient(ellipse at center, #1a6e3c 0%, #0d3320 50%, #071810 100%) fixed;
}
.mm-auth--card .mm-auth-top { width: 100%; }
.mm-auth-center { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.mm-auth-card {
    display: flex; flex-direction: column; gap: 24px;
    width: 440px; max-width: 100%;
    padding: 40px 40px 36px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.mm-auth-card__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mm-auth-card__heading { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mm-auth-card__title { font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: #0f172a; }
.mm-auth-card__sub { font-size: 14px; color: #64748b; }
.mm-auth-card__divider { height: 1px; background: #eef2f6; }
.mm-auth-card__code {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 12.5px; font-weight: 500; color: #64748b; text-align: center;
}
.mm-auth-card__code > svg { width: 15px; height: 15px; color: #15803d; }
.mm-auth-below { font-size: 13px; font-weight: 500; color: #c3d9cb; text-align: center; }
.mm-auth-copy { font-size: 12px; color: #7f9c8a; }

@media (max-width: 520px) {
    .mm-auth--card { padding: 20px 16px; gap: 24px; }
    .mm-auth-card { padding: 28px 22px 24px; }
}

/* ── Proposal A · /login ────────────────────────────────────────────────────────────────── */
.mm-auth--split { display: flex; background: #fff; }
.mm-auth-panel {
    flex: 0 0 600px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    min-height: 100vh; padding: 48px 56px;
    background: linear-gradient(170deg, #071810 0%, #0a2015 55%, #0d2818 100%);
}
.mm-auth-panel .mm-auth-brand { gap: 12px; }
.mm-auth-panel__word { display: flex; flex-direction: column; gap: 1px; }
.mm-auth-panel__name { font-size: 16px; font-weight: 700; color: #fff; }
.mm-auth-panel__tag { font-size: 12px; font-weight: 500; color: #a7c4b2; }
.mm-auth-panel__copy { display: flex; flex-direction: column; gap: 36px; }
.mm-auth-panel__lead { display: flex; flex-direction: column; gap: 14px; }
.mm-auth-panel__headline { font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; color: #fff; }
.mm-auth-panel__sub { font-size: 15.5px; line-height: 1.5; color: #c3d9cb; }
.mm-auth-feats { display: flex; flex-direction: column; gap: 22px; list-style: none; }
.mm-auth-feat { display: flex; align-items: flex-start; gap: 14px; }
.mm-auth-feat__icon {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 9px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #6ee7a0;
}
.mm-auth-feat__icon svg { width: 17px; height: 17px; }
.mm-auth-feat__text { display: flex; flex-direction: column; gap: 3px; }
.mm-auth-feat__title { font-size: 14.5px; font-weight: 600; color: #fff; }
.mm-auth-feat__body { font-size: 13px; line-height: 1.45; color: #a7c4b2; }

.mm-auth-stage {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 48px 24px;
}
.mm-auth-portal { width: 380px; max-width: 100%; }
.mm-auth-portal__head { display: flex; flex-direction: column; gap: 8px; }
.mm-auth-portal__title { font-size: 28px; font-weight: 700; letter-spacing: -.4px; color: #0f172a; }
.mm-auth-portal__sub { font-size: 14px; line-height: 1.45; color: #64748b; }
.mm-auth-portal__code {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 8px;
    background: #f8fafc; border: 1px solid #eef2f6;
    font-size: 12.5px; font-weight: 500; color: #475569;
}
.mm-auth-portal__code > svg { width: 16px; height: 16px; color: #15803d; }
.mm-auth-portal__link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.mm-auth-portal__link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #15803d; text-decoration: none; }
.mm-auth-portal__link a:hover { text-decoration: underline; }
.mm-auth-portal__link a svg { width: 14px; height: 14px; }
/* Narrow screens drop the welcome panel; the brand moves above the form (canvas has no narrow state). */
.mm-auth-stage__brand { display: none; }
.mm-auth-stage__brand .mm-auth-brand__name { color: #0f172a; }

@media (max-width: 1100px) { .mm-auth-panel { flex-basis: 460px; padding: 40px 40px; } }
@media (max-width: 900px) {
    .mm-auth-panel { display: none; }
    .mm-auth-stage { justify-content: flex-start; padding: 32px 16px; }
    .mm-auth-stage__brand { display: flex; width: 380px; max-width: 100%; margin-bottom: 40px; }
}

/* ── Chooser · /login (Screen 01C `fAPDy`, designprompt §9.3aw) ────────────────────────────
   Component/Auth/SignInChoiceCard `JigeR` · Hover `bC3l0` · Focus `LUreN`. No top bar (user); the
   14px spacer mirrors the copyright line so the choice sits in the true middle. */
.mm-auth--choose {
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    gap: 32px; padding: 36px 48px; background: #fff;
}
.mm-auth-choose__spacer { height: 14px; flex-shrink: 0; }
.mm-auth-choose { display: flex; flex-direction: column; align-items: center; gap: 36px; width: 100%; }
.mm-auth-choose__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.mm-auth-choose__title { font-size: 30px; font-weight: 700; letter-spacing: -.5px; color: #0f172a; }
.mm-auth-choose__sub { font-size: 15px; color: #64748b; }
.mm-auth-choices { display: flex; gap: 20px; justify-content: center; width: 100%; }
.mm-auth-company-choices { flex-wrap: wrap; max-width: 1100px; }
.mm-auth-company-choices .mm-auth-choice { flex-basis: 260px; }
.mm-auth-choice {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    flex: 0 1 340px; padding: 28px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mm-auth-choice__tile {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #15803d;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mm-auth-choice__tile svg { width: 22px; height: 22px; }
.mm-auth-choice__text { display: flex; flex-direction: column; gap: 6px; }
.mm-auth-choice__title { font-size: 18px; font-weight: 700; letter-spacing: -.2px; color: #0f172a; }
.mm-auth-choice__body { font-size: 13.5px; line-height: 1.45; color: #64748b; }
.mm-auth-choice__go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #15803d; }
.mm-auth-choice__go svg { width: 15px; height: 15px; }
/* Hover `bC3l0`: 1.5px green edge (inset shadow keeps the box from growing), tile fills green. */
.mm-auth-choice:hover { border-color: #16a34a; box-shadow: inset 0 0 0 .5px #16a34a, 0 8px 24px rgba(22,163,74,.14); }
.mm-auth-choice:hover .mm-auth-choice__tile { background: #16a34a; border-color: #16a34a; color: #fff; }
/* Focus `LUreN`: 4px ring. */
.mm-auth-choice:focus-visible { outline: 0; border-color: #16a34a; box-shadow: inset 0 0 0 .5px #16a34a, 0 0 0 4px rgba(22,163,74,.2); }
.mm-auth-choose__help { font-size: 13px; font-weight: 500; color: #64748b; text-align: center; }
.mm-auth--choose .mm-auth-copy { color: #94a3b8; }

@media (max-width: 760px) {
    .mm-auth--choose { padding: 24px 16px; }
    .mm-auth-choose__title { font-size: 24px; }
    .mm-auth-choices { flex-direction: column; align-items: center; gap: 12px; }
    .mm-auth-choice { flex: 0 0 auto; width: 100%; max-width: 420px; padding: 22px; }
}

/* ── Verify code · /verify-2fa (Screen 02L `WzAOT`, designprompt §9.3ax) ───────────────────
   Component/Auth/VerifyCodeCard `S8CTx` on white — no green background (user). States: Typing `vBn0u` ·
   Verifying `ISIEi` · Wrong Code `YrIQT` · Expired `o2vAe` · New Code Sent `HoIwu` · Timed Out `I4CFk`. */
.mm-auth--plain {
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    gap: 32px; padding: 36px 48px; background: #fff;
}
.mm-auth--plain .mm-auth-copy { color: #94a3b8; }
.mm-auth-card--light { padding-bottom: 32px; border: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(15,23,42,.06); }
.mm-auth-card__tile {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 11px;
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #15803d;
}
.mm-auth-card__tile svg { width: 24px; height: 24px; }
.mm-auth-card__sub--wrap { max-width: 360px; line-height: 1.45; }
.mm-auth-code { display: flex; flex-direction: column; gap: 8px; border: 0; }
.mm-auth-digits { display: flex; justify-content: space-between; gap: 12px; }
.mm-auth-digit {
    width: 50px; height: 58px; min-width: 0; flex: 0 1 50px;
    border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; outline: 0;
    font: inherit; font-size: 22px; font-weight: 700; color: #0f172a; text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mm-auth-digit:not(:placeholder-shown) { border-color: #cbd5e1; }
.mm-auth-digit:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.mm-auth-digits.is-invalid .mm-auth-digit { border-color: #fca5a5; }
.mm-auth-alert--success { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.mm-auth-alert .is-success-glyph, .mm-auth-alert--success .is-danger-glyph, .mm-auth-alert--success .is-warning-glyph { display: none; }
.mm-auth-alert--success .is-success-glyph { display: block; }
.mm-auth-resend { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.mm-auth-linkbtn {
    border: 0; background: none; padding: 0; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 600; color: #15803d;
}
.mm-auth-linkbtn:hover { text-decoration: underline; }
.mm-auth-linkbtn:disabled { color: #94a3b8; cursor: default; text-decoration: none; }
.mm-auth-back { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #64748b; text-decoration: none; }
.mm-auth-back:hover { color: #334155; }
.mm-auth-back svg { width: 14px; height: 14px; }
.mm-auth-below--plain { color: #64748b; }
/* Timed Out `I4CFk`: nothing left to type — boxes, resend and divider go; the button leads back. */
.mm-auth-verify.is-restart .mm-auth-code,
.mm-auth-verify.is-restart .mm-auth-resend,
.mm-auth-verify.is-restart .mm-auth-card__divider,
.mm-auth-verify.is-restart .mm-auth-back { display: none; }

@media (max-width: 520px) {
    .mm-auth--plain { padding: 20px 16px; gap: 24px; }
    .mm-auth-card--light { padding: 28px 22px 24px; }
    .mm-auth-digits { gap: 8px; }
    .mm-auth-digit { height: 52px; font-size: 20px; }
}
