/* ==========================================================================
   account.css - extra styles for the sign-in / onboarding / employee screens.
   Builds on styles.css (same colours, buttons, chips, cards).
   ========================================================================== */

body.acct { background: var(--bg); }
.banner-link { color: #fff; font-weight: 600; }

/* Jump list under the demo banner */
.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: .85rem; }
.jump span { color: var(--muted); font-weight: 600; }
.jump a { color: var(--brand-dark); font-weight: 600; text-decoration: none; padding: 2px 8px; border-radius: 99px; }
.jump a:hover { background: var(--brand-tint); }
.jump a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }

#app:focus { outline: none; }

/* ---- Two-panel sign-in layout ------------------------------------------ */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 110px); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(20px, 6vw, 80px); }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card h1 { margin: 16px 0 6px; }
.auth-card .sub { margin-bottom: 18px; }
.auth-art { background: linear-gradient(160deg, #1d4ed8, #1e3a8a 70%); color: #fff; padding: 48px clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-art h2 { font-size: 1.6rem; line-height: 1.25; }
.auth-art ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.auth-art li::before { content: "✓ "; font-weight: 800; }
.mini-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; padding: 14px 16px; max-width: 360px; }
.mini-card small { opacity: .9; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-row .brand-logo img { height: 52px; }

/* ---- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form .field { margin: 0; }
.form label.field input, .form label.field select { max-width: none; padding: 10px 12px; border-radius: 10px; }
.field-label { display: block; font-weight: 600; margin-bottom: 4px; }
.form input, .form select { width: 100%; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); }
.form input[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.err { color: var(--bad); font-weight: 600; font-size: .875rem; margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.meter i { height: 6px; border-radius: 3px; background: var(--line); }
.meter[data-score="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-score="2"] i:nth-child(-n+2) { background: #c27a00; }
.meter[data-score="3"] i:nth-child(-n+3) { background: #4cae6a; }
.meter[data-score="4"] i:nth-child(-n+4) { background: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.btn.block { width: 100%; justify-content: center; }
.btn[aria-busy="true"] { position: relative; }
.spinner { width: 16px; height: 16px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 8px; animation: spin .8s linear infinite; }
.btn:not(.primary) .spinner { border-color: rgba(0,0,0,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.alert { border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.bad { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); }
.alert.ok { background: var(--ok-bg); color: #0f4a28; border: 1px solid var(--ok); }
.alert.info { background: #eef4ff; color: #1b3a6b; border: 1px solid #9db8e6; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* Demo controls panel: choose what the next simulated action does */
.demo-ctl { margin-top: 22px; border: 1px dashed #b9a24a; background: #fff8de; border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.demo-ctl legend { font-weight: 700; padding: 0 6px; color: #5c4300; }
.demo-ctl label { display: inline-flex; gap: 6px; align-items: center; margin: 4px 14px 4px 0; }

.center-card { max-width: 520px; margin: 40px auto; padding: 0 16px; }
.center-card .card { padding: 24px; }
.big-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 10px; }

/* ---- Setup wizard ------------------------------------------------------- */
.shell { max-width: 880px; margin: 0 auto; padding: 24px 16px 60px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.stepper li .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--text); font-size: .85rem; }
.stepper li[aria-current="step"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.stepper li[aria-current="step"] .n { background: var(--surface); color: var(--ink); }
.stepper li.done .n { background: var(--brand); color: var(--on-brand); }
.list-edit { display: grid; gap: 8px; margin: 10px 0; }
.item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); }
.item .grow { flex: 1; min-width: 140px; }
.item input[type="time"], .item input[type="text"] { width: auto; }
.swatches { display: inline-flex; gap: 6px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--field-line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.empty { text-align: center; padding: 24px 12px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); }
.empty .big-icon { margin: 0 auto 8px; }
.skeleton { background: linear-gradient(90deg, var(--line), var(--head-bg), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; height: 70px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Top bars for manager / employee views ----------------------------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.topbar .who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.invite-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.email-preview { background: var(--surface); border: 1px solid #b9a24a; border-radius: 12px; overflow: hidden; margin-top: 10px; }
.email-preview header { background: #fff8de; padding: 6px 12px; font-size: .8rem; font-weight: 700; color: #5c4300; }
.email-preview div { padding: 12px; font-size: .9rem; }
.fake-link { word-break: break-all; font-family: ui-monospace, Consolas, monospace; background: var(--head-bg); padding: 2px 6px; border-radius: 6px; }

/* ---- Employee home ------------------------------------------------------ */
.emp-main { max-width: 1000px; margin: 0 auto; padding: 20px 16px 60px; }
.emp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.emp-grid .wide { grid-column: 1 / -1; }
.shift-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shift-row:last-child { border-bottom: 0; }
.date-tile { width: 56px; flex: none; text-align: center; background: var(--brand-tint); border-radius: 12px; padding: 6px 0; line-height: 1.1; }
.date-tile b { display: block; font-size: 1.2rem; }
.date-tile small { color: var(--brand-dark); font-weight: 700; }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.offer h3 { margin-bottom: 4px; }

.emp-main .chip, .invite-row .chip { white-space: normal; }
.emp-main, .emp-grid > * { min-width: 0; }
.legend { font-size: .85rem; color: var(--muted); line-height: 2; }
.legend .chip { margin: 0 2px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { order: 2; padding: 28px 20px; }
  .two-col, .emp-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-form { padding: 24px 16px; }
}

/* ---- Centred sign-in card (modelled on common rostering-tool logins) ---- */
.auth-center { min-height: calc(100vh - 60px); display: grid; place-content: center; justify-items: center; gap: 14px; padding: 28px 16px 90px;
  background: radial-gradient(circle at 20% 0%, var(--brand-tint) 0%, transparent 55%), radial-gradient(circle at 100% 100%, var(--brand-tint) 0%, transparent 50%), var(--bg); }
.auth-center .auth-card { width: min(420px, calc(100vw - 32px)); padding: 28px; margin: 0; max-width: none; }
.auth-center h1 { font-size: 1.35rem; margin: 18px 0 4px; }
.auth-foot { max-width: 420px; font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }
.forgot { margin: -6px 0 0; font-size: .9rem; }
.divider-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* ---- Prototype tools: small, collapsible, clearly not product UI ---- */
.tools { position: fixed; left: 12px; bottom: 12px; z-index: 60; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 2px dashed #b9a24a; border-radius: 12px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.tools summary { cursor: pointer; padding: 8px 12px; font-weight: 700; color: #5c4300; background: #fff8de; border-radius: 10px; }
.tools .jump { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; padding: 8px 12px 0; }
.tools .jump strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.tools .demo-ctl { margin: 10px 12px 12px; }
