/* Potgieter Meal Planner: styles.
   Same look as Potgieter Home Shopping (Phantom brand: violet → cyan ghost, deep violet dark theme). */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0f0e15;
  --card: #18171f;
  --card-2: #1f1d29;
  --input: #121118;
  --border: #2b2937;
  --border-strong: #3a3749;

  /* text */
  --text: #e6e4ef;
  --muted: #9a97ab;

  /* brand */
  --accent: #8f7cf7;
  --accent-text: #b4a6ff;
  --accent-soft: rgba(143, 124, 247, .14);
  --accent-line: rgba(143, 124, 247, .38);
  --cyan: #56d4e8;
  --brand-gradient: linear-gradient(135deg, #b69cff, #56d4e8);
  --button-gradient: linear-gradient(135deg, #7c68f0, #5d67e4);

  /* meaning */
  --ok: #4cc38a;
  --moon: #ffd98a;
  --moon-soft: rgba(255, 217, 138, .10);
  --danger: #f0675c;
  --danger-soft: rgba(240, 103, 92, .12);

  --radius: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25);
}

/* ---- Base ------------------------------------------------------------------------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(143, 124, 247, .10), transparent 60%),
    radial-gradient(800px 380px at 100% 0%, rgba(86, 212, 232, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 17px; font-weight: 650; margin: 0 0 8px; letter-spacing: .01em; }
::selection { background: rgba(143, 124, 247, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { max-width: 1080px; margin: 0 auto; padding: 8px 20px 40px; }

/* ---- Header ------------------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(15, 14, 21, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(143, 124, 247, .45)); transition: transform .2s; }
.brand:hover .logo { transform: translateY(-2px) rotate(-4deg); }
.brand-name {
  font-weight: 750; letter-spacing: .02em;
  background: linear-gradient(90deg, #c4b1ff, #6edcec); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.who { display: flex; align-items: center; gap: 10px; margin: 0; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand-gradient); color: #12101c; font-weight: 750; font-size: 14px;
}
.avatar.small { width: 24px; height: 24px; font-size: 12px; }
.avatar.gone { background: var(--border-strong); color: var(--muted); }
.who-name { font-weight: 600; }
.role {
  font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 1px 8px;
}

/* ---- Tabs ----------------------------------------------------------------------------- */

nav {
  display: flex; gap: 6px; max-width: 1080px; margin: 0 auto; padding: 14px 20px 8px;
  overflow-x: auto; scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav button {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font-weight: 550; white-space: nowrap; box-shadow: none;
}
nav button:hover:not(.active) { color: var(--text); background: var(--card); }
nav button.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }

/* ---- Controls --------------------------------------------------------------------------- */

button {
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  color: #fff; background: var(--button-gradient); border: 1px solid transparent; border-radius: 10px;
  padding: 8px 15px; box-shadow: 0 4px 14px rgba(124, 104, 240, .25);
  transition: filter .15s, transform .15s, background-color .15s, border-color .15s;
}
button:hover:not(:disabled) { filter: brightness(1.1); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; box-shadow: none; }
button.secondary, button.ghost { background: var(--card); color: var(--text); border-color: var(--border); box-shadow: none; }
button.secondary:hover:not(:disabled), button.ghost:hover:not(:disabled) { background: var(--card-2); border-color: var(--border-strong); filter: none; }
button.ghost { background: transparent; }
button.danger { background: none; color: var(--danger); border-color: transparent; box-shadow: none; }
button.danger:hover:not(:disabled) { background: var(--danger-soft); filter: none; }
button.link { background: none; border: 0; color: var(--accent-text); padding: 0; box-shadow: none; font-weight: 600; }
button.link:hover:not(:disabled) { text-decoration: underline; filter: none; }
button.small { padding: 4px 11px; font-size: 13px; border-radius: 8px; }
button.wide { width: 100%; padding: 11px 16px; font-size: 16px; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--input);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: #6f6c80; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.optional { font-weight: 400; color: #6f6c80; }

form { display: grid; gap: 10px; margin-top: 12px; }
form label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card.narrow { max-width: 460px; }
.notice { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.error { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(240, 103, 92, .3); border-radius: 10px; padding: 8px 12px; margin: 0; }

/* ---- Week plan --------------------------------------------------------------------------- */

.week-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.week-step { display: flex; align-items: center; gap: 10px; }
.week-step > button { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 14px; }
.week-title { display: grid; line-height: 1.3; min-width: 11em; }
.week-title strong { font-size: 18px; }

.days { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.day {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.day.clickable { cursor: pointer; }
.day.clickable:hover { border-color: var(--border-strong); background: var(--card-2); }
.day.today { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.day.mine { background: linear-gradient(90deg, rgba(143, 124, 247, .10), transparent 60%), var(--card); }
.day.past { opacity: .62; }
.day.open .meal { color: var(--muted); font-weight: 500; font-style: italic; }

.date { display: grid; justify-items: center; text-align: center; border-right: 1px solid var(--border); padding-right: 12px; line-height: 1.15; }
.date .wd { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.date .dn { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }
.date .mo { font-size: 12px; color: var(--muted); }
.day.today .date .wd { color: var(--moon); }

.dinner { min-width: 0; display: grid; gap: 3px; }
.meal { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.cook { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.cook strong { color: var(--text); font-weight: 600; }
.notes { color: var(--muted); font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.tonight {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--moon); background: var(--moon-soft); border: 1px solid rgba(255, 217, 138, .3);
  border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 2px;
}
.you { font-size: 11px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 0 7px; }
.day-actions { display: flex; gap: 6px; }

/* ---- Week summary (right side) ---------------------------------------------------------- */

.week-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; grid-template-areas: "main side"; gap: 18px; align-items: start; }
.week-main { grid-area: main; min-width: 0; }
.summary { grid-area: side; position: sticky; top: 76px; margin: 0; padding: 16px; }
.summary h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.summary h3:not(:first-child) { margin-top: 16px; }
.count { font-size: 12px; min-width: 20px; text-align: center; border-radius: 999px; padding: 0 7px;
         background: var(--brand-gradient); color: #12101c; font-weight: 750; letter-spacing: 0; }
.count.zero { background: rgba(76, 195, 138, .16); color: var(--ok); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text); background: var(--card-2); border: 1px solid var(--border-strong); box-shadow: none;
}
.chip small { color: var(--muted); font-weight: 500; }
button.chip:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); filter: none; }
.chip.tonight-chip { border-color: rgba(255, 217, 138, .45); }
.chip.missed { opacity: .5; text-decoration: line-through; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.people-list .turn-count { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.all-good { color: var(--ok); font-size: 13px; }
.turns { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.turns > summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.turns:not([open]) > summary { margin-bottom: 0; }

@media (max-width: 860px) {
  /* Narrow screens: the summary goes above the days. */
  .week-layout { grid-template-columns: 1fr; grid-template-areas: "side" "main"; gap: 12px; }
  .summary { position: static; }
}

/* ---- Meal ideas ------------------------------------------------------------------------- */

.kitchen-add { display: flex; gap: 6px; margin: 0 0 10px; }
.kitchen-add input { flex: 1; min-width: 0; padding: 7px 10px; }
.kitchen-add button { padding: 7px 12px; }
.kitchen-items { margin-bottom: 10px; }
.kitchen-chip { padding: 3px 4px 3px 11px; align-items: center; }
.kitchen-chip.locked { padding: 3px 11px; }
.chip-x {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; line-height: 1; font-size: 15px; font-weight: 500;
  background: transparent; color: var(--muted); border: 0; box-shadow: none;
}
.chip-x:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); filter: none; }
.small-print { font-size: 12px; margin: 0 0 6px; }
button.small-link { font-size: 12px; color: var(--muted); }

.ideas-head { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ideas-head input { flex: 1 1 220px; }
.ideas { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.group-title { margin: 16px 0 8px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.group-title:first-child { margin-top: 0; }
.idea {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 15px; box-shadow: var(--shadow); display: grid; gap: 8px;
}
.idea.ready { border-color: rgba(76, 195, 138, .4); }
.idea-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.idea-name { font-size: 16px; font-weight: 650; }
.idea-time { font-weight: 500; }
.match { font-size: 12px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.match.ready { color: var(--ok); background: rgba(76, 195, 138, .14); }
.ingredients { gap: 5px; }
.ing { display: inline-block; font-size: 12.5px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); }
.ing.have { color: var(--ok); border-color: rgba(76, 195, 138, .35); background: rgba(76, 195, 138, .08); }
.ing.need { color: var(--muted); border-style: dashed; }
.steps > summary { cursor: pointer; font-size: 13px; color: var(--accent-text); width: fit-content; }
.steps p { margin: 6px 0 0; font-size: 14px; color: var(--text); white-space: pre-line; }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.add-recipe { margin-top: 16px; }
.add-recipe > summary { cursor: pointer; font-weight: 600; }
input.short { width: 120px; }
.pick-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.pick-day { white-space: nowrap; }

/* ---- To buy (dinner form + week view) ------------------------------------------------------ */

dialog.choice { max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog.choice:has(.to-buy-box) { width: min(560px, calc(100vw - 24px)); }
.to-buy-box { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--input); }
.to-buy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tb-total { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.tb-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-items:empty { display: none; }
.tb-item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; }
.tb-item img, .tb-results img, .tb-img {
  width: 38px; height: 38px; flex: none; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px;
}
.tb-img { display: grid; place-items: center; background: var(--card-2); font-size: 17px; }
.tb-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tb-name { font-size: 14px; font-weight: 550; color: var(--text); overflow-wrap: anywhere; line-height: 1.3; }
.tb-info .muted { font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tb-find { font-size: 12px; }
.qty { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.qty button { width: 28px; height: 28px; padding: 0; border-radius: 50%; line-height: 1; }
.qty span { min-width: 16px; text-align: center; font-weight: 650; }
.tb-search input { width: 100%; }
.tb-results {
  list-style: none; margin: 4px 0 0; padding: 4px;
  max-height: 290px; overflow-y: auto; background: var(--card-2); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.tb-results li[role=option] { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.tb-results li.active, .tb-results li[role=option]:hover { background: var(--accent-soft); }
.tb-message { padding: 6px 8px; font-size: 13px; color: var(--muted); }
.promo {
  display: inline-block; background: rgba(240, 169, 69, .14); color: #f0a945; border: 1px solid rgba(240, 169, 69, .25);
  font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 0 7px; margin-left: 4px;
}
.oos { color: var(--danger); font-size: 12px; }
.to-buy-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.to-buy-line > summary { cursor: pointer; width: fit-content; }
.to-buy-line > summary strong { color: var(--text); font-weight: 600; }
.to-buy-list { margin: 6px 0 2px; padding-left: 18px; display: grid; gap: 3px; color: var(--text); }
.list-ok { color: var(--ok); }
.list-wait { color: #f0a945; }
@media (max-width: 640px) {
  /* Phones: name on the first line, quantity and remove on the next. */
  .tb-item { flex-wrap: wrap; row-gap: 4px; }
  .tb-item .tb-info { flex: 1 1 calc(100% - 52px); }
  .tb-item .qty { margin-left: 48px; }
  .tb-item .chip-x { margin-left: auto; }
  .to-buy-head { flex-wrap: wrap; }
  .to-buy-box { padding: 10px; }
}

/* ---- Users ------------------------------------------------------------------------------- */

form.add-user { grid-template-columns: 1fr 1fr auto auto; align-items: end; }
table { width: 100%; border-collapse: collapse; margin: 4px 0; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
th, td { padding: 9px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.user-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.users select { padding: 5px 8px; }

/* ---- Dialog -------------------------------------------------------------------------------- */

dialog.choice {
  width: min(460px, calc(100vw - 32px)); padding: 20px 22px; color: var(--text);
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
dialog.choice::backdrop { background: rgba(8, 7, 12, .65); backdrop-filter: blur(2px); }
dialog.choice form { margin: 0; }
dialog.choice h2 { margin: 0 0 4px; font-size: 18px; }
.choice-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.choice-buttons button { width: 100%; white-space: normal; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
  background: var(--card-2); color: var(--text); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent);
  padding: 10px 16px; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
#toast.bad { border-left-color: var(--danger); }

/* ---- Footer -------------------------------------------------------------------------------- */

.app-foot { text-align: center; color: #6f6c80; font-size: 12px; letter-spacing: .03em; padding: 6px 16px 22px; }
.app-foot .brand-name { font-weight: 700; }
.app-foot-legal { margin-top: 3px; font-size: 11px; color: #5c5a6b; }

/* ---- Login page (same as the shopping list) -------------------------------------------------- */

.login-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; box-sizing: border-box;
              padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); overflow-x: hidden; }
.glow { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; z-index: 0; }
.glow-a { background: #7c68f0; top: -180px; left: -140px; }
.glow-b { background: #2bb7d0; bottom: -220px; right: -160px; opacity: .22; }
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 400px; margin: auto; padding: 0; display: grid; gap: 22px; justify-items: center; }
.login-brand { display: grid; justify-items: center; gap: 2px; text-align: center; }
.login-logo { width: 120px; height: 120px; filter: drop-shadow(0 10px 28px rgba(143, 124, 247, .55)); margin-bottom: 2px; }
.login-title { font-size: 32px; line-height: 1.12; margin: 4px 0 0; }
.login-title .brand-name { display: inline-block; }
.login-title .brand-line { display: block; }
.login-card {
  width: 100%; margin: 0; display: grid; gap: 14px;
  background: rgba(24, 23, 31, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.login-card h1 { font-size: 21px; }
.login-card .muted { margin: -6px 0 2px; font-size: 14px; }
.login-card input { width: 100%; padding: 11px 13px; }
.login-card button { margin-top: 6px; }
.login-foot { color: #6f6c80; font-size: 12px; letter-spacing: .04em; margin: 0; }
.login-wrap .app-foot { padding: 0; margin-top: -12px; }
.notice-text { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft);
               border: 1px solid var(--accent-line); color: var(--text); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Small screens ------------------------------------------------------------------------------ */

@media (max-width: 640px) {
  main { padding: 6px 14px 40px; }
  nav { padding: 12px 14px 6px; }
  .topbar { padding: 8px 14px; flex-wrap: nowrap; }
  .brand { font-size: 15px; gap: 8px; flex: none; }
  .brand .logo { width: 36px; height: 36px; flex: none; }
  .brand .brand-name { display: inline-block; line-height: 1.15; }
  .brand .brand-line { display: block; white-space: nowrap; }
  .who-name { display: none; }
  .card { padding: 14px; }
  form.add-user { grid-template-columns: 1fr; }
  .day { grid-template-columns: 58px 1fr; gap: 12px; padding: 11px 12px; }
  .date { padding-right: 10px; }
  .date .dn { font-size: 22px; }
  .day-actions { grid-column: 2; }
  .day-actions:empty { display: none; }
  .meal { font-size: 16px; }
}
@media (max-width: 380px) {
  .who .role { display: none; }
}
@media (max-width: 420px) {
  .login-page { padding-left: 14px; padding-right: 14px; }
  .login-wrap { gap: 16px; }
  .login-logo { width: 96px; height: 96px; }
  .login-title { font-size: 27px; }
  .login-card { padding: 20px 18px; gap: 12px; border-radius: 16px; }
  .login-card h1 { font-size: 19px; }
  .login-card input { padding: 10px 12px; }
  .login-wrap .app-foot { margin-top: -8px; }
  .glow { filter: none; opacity: 1; width: 700px; height: 700px; }
  .glow-a { background: radial-gradient(circle, rgba(124, 104, 240, .6), rgba(124, 104, 240, .22) 40%, transparent 70%); top: -330px; left: -300px; }
  .glow-b { background: radial-gradient(circle, rgba(43, 183, 208, .3), rgba(43, 183, 208, .1) 40%, transparent 70%); bottom: -380px; right: -340px; }
}
