/* =====================================================================
   iGEAR360 - Integrated Governance, Excellence, Analytics & Reporting
   J.H. Cerilles State College.
   ===================================================================== */

/* ---------- Preflight (Tailwind-compatible base, overrides Bootstrap reboot) ---------- */
*, ::after, ::before, ::backdrop { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
p, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
label { display: inline; margin: 0; }
kbd { padding: 0; border-radius: 0; background: none; color: inherit; font-size: 1em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
th { text-align: inherit; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
img, svg, video, canvas { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, optgroup, textarea { font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); }
textarea { resize: vertical; }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }

/* ---------- Design tokens & app styles (src/index.css) ---------- */
:root {
  --cherry: #a3133d;
  --cherry-dark: #881337;
  --cherry-soft: #fff1f2;
  --navy: #0b1930;
  --navy-2: #1f2937;
  --navy-soft: #f3f4f6;
  --ink: #122033;
  --muted: #617087;
  --line: #e3e9f0;
  --surface: #ffffff;
  --surface-muted: #f9fafb;
  --page: #f5f3ef;
  --shadow-card: 0 1px 2px rgba(15, 28, 47, 0.03), 0 12px 35px rgba(15, 28, 47, 0.055);
  --shadow-float: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

@media (max-width: 639px) {
  .app-card {
    border-radius: 12px;
  }

  .recharts-legend-wrapper {
    font-size: 10px !important;
  }

  .recharts-default-tooltip {
    max-width: min(240px, 72vw);
  }

  table th,
  table td {
    white-space: nowrap;
  }
}

@supports (padding: max(0px)) {
  header {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(159, 18, 57, 0.38);
  outline-offset: 2px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

::selection { background: rgba(163, 19, 61, 0.15); color: var(--navy); }

.executive-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(218, 216, 210, 0.85);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.executive-card:hover { border-color: #d3dce8; box-shadow: 0 16px 38px rgba(15, 28, 47, 0.08); }
.metric-number { font-variant-numeric: tabular-nums; letter-spacing: -0.045em; }
.subtle-grid {
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.standard-page-header {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #0b1930;
  padding: 1.5rem 1.75rem;
  color: white;
  box-shadow: 0 18px 45px rgba(9,24,48,.15);
}

/* Application shell */
.app-shell {
  width: 100%;
  height: 100dvh;
  display: flex;
  gap: .75rem;
  overflow: hidden;
  padding: .75rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(163,19,61,.055), transparent 28rem),
    #f5f3ef;
}
.app-workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.app-main { flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 1rem .4rem .4rem; }
.app-main__content { width: 100%; max-width: 1600px; margin-inline: auto; animation: page-fade-in .35s cubic-bezier(.16,1,.3,1); }
.app-nav-overlay { display: none; }

.app-sidebar {
  position: relative;
  isolation: isolate;
  width: 16.25rem;
  height: calc(100dvh - 1.5rem);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  color: white;
  background: #111d2d;
  box-shadow: 0 20px 50px rgba(17,29,45,.18);
  transition: width 260ms cubic-bezier(.2,.8,.2,1), transform 260ms ease;
}
.app-sidebar::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  left: -10rem;
  top: -7rem;
  border-radius: 50%;
  background: #a3133d;
  filter: blur(1px);
  opacity: .65;
}
.app-sidebar.is-collapsed { width: 4.75rem; }
.app-sidebar__brand { height: 4.2rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .25rem; }
.app-sidebar__identity { min-width: 0; display: flex; align-items: center; gap: .72rem; }
.app-sidebar__logo { width: 2.65rem; height: 2.65rem; flex: 0 0 auto; display: grid; place-items: center; padding: .25rem; border-radius: 12px; background: white; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.app-sidebar__logo img { width: 100%; height: 100%; object-fit: contain; }
.app-sidebar__brand-copy { min-width: 0; }
.app-sidebar__brand-copy h1 { font-size: 1rem; line-height: 1; letter-spacing: -.03em; }
.app-sidebar__brand-copy h1 span { color: #f5a3ba; }
.app-sidebar__brand-copy p { margin-top: .32rem; color: #8290a2; font-size: .54rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.app-sidebar__collapse, .app-sidebar__mobile-close { width: 2rem; height: 2rem; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 9px; color: #758398; background: transparent; transition: .16s ease; }
.app-sidebar__collapse:hover, .app-sidebar__mobile-close:hover { color: white; background: rgba(255,255,255,.08); }
.app-sidebar__mobile-close { display: none; }
.app-sidebar__label { margin: 1.1rem .65rem .6rem; color: #637186; font-size: .56rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.app-sidebar__nav { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: .18rem; overflow-y: auto; padding-right: .1rem; }
.app-sidebar__link {
  position: relative;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: .78rem;
  padding: 0 .78rem;
  border-radius: 11px;
  color: #8f9cad;
  font-size: .75rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.app-sidebar__link svg { flex: 0 0 auto; }
.app-sidebar__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-sidebar__link:hover { color: #edf2f7; background: rgba(255,255,255,.055); transform: translateX(2px); }
.app-sidebar__link.is-active { color: white; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); }
.app-sidebar__link.is-active::after { content: ""; position: absolute; right: .65rem; width: .3rem; height: .3rem; border-radius: 50%; background: #ee718f; box-shadow: 0 0 0 4px rgba(238,113,143,.1); }
.app-sidebar.is-collapsed .app-sidebar__link { justify-content: center; padding-inline: 0; }
.app-sidebar.is-collapsed .app-sidebar__link.is-active::after { right: .25rem; }
.app-sidebar__status { margin-top: .7rem; padding: .85rem; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.04); }
.app-sidebar__status > div { display: flex; align-items: center; gap: .65rem; }
.app-sidebar__status-icon { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 8px; color: #70d7a2; background: rgba(80,200,140,.1); }
.app-sidebar__status b, .app-sidebar__status small { display: block; }
.app-sidebar__status b { color: #dbe3ec; font-size: .62rem; }
.app-sidebar__status small { margin-top: .15rem; color: #718095; font-size: .53rem; }
.app-sidebar__status > i { display: block; width: 100%; height: 2px; margin-top: .7rem; border-radius: 99px; background: linear-gradient(90deg, #55cf95 85%, rgba(255,255,255,.08) 85%); }

.app-commandbar { position: relative; z-index: 60; min-height: 4.65rem; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .7rem .35rem 1.15rem; }
.app-commandbar__intro { min-width: 0; display: flex; align-items: center; gap: .75rem; }
.app-commandbar__intro p { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; color: #a3133d; font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-commandbar__intro h1 { overflow: hidden; color: #142136; font-size: 1.12rem; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.app-commandbar__menu { display: none; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid #dedbd5; border-radius: 11px; color: #526074; background: rgba(255,255,255,.7); }
.app-commandbar__actions { position: relative; display: flex; align-items: center; gap: .5rem; }
.app-commandbar__search { width: clamp(13rem, 22vw, 19rem); height: 2.75rem; display: flex; align-items: center; gap: .6rem; padding: 0 .75rem; border: 1px solid #dedbd5; border-radius: 12px; color: #8b96a5; background: rgba(255,255,255,.65); transition: .16s ease; }
.app-commandbar__search:focus-within { border-color: #c8b0b6; background: white; box-shadow: 0 0 0 4px rgba(163,19,61,.05); }
.app-commandbar__search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #263449; background: transparent; font-size: .7rem; }
.app-commandbar__search kbd { padding: .18rem .35rem; border: 1px solid #dedbd5; border-radius: 5px; color: #9199a5; background: white; font-size: .5rem; }
.app-commandbar__notification { position: relative; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid #dedbd5; border-radius: 12px; color: #5f6d80; background: rgba(255,255,255,.65); }
.app-commandbar__notification span { position: absolute; right: .62rem; top: .58rem; width: .42rem; height: .42rem; border: 2px solid #f5f3ef; border-radius: 50%; background: #b51643; }
.app-commandbar__profile { height: 3rem; display: flex; align-items: center; gap: .58rem; padding: .25rem .48rem .25rem .3rem; border: 1px solid transparent; border-radius: 13px; color: #6e7a8c; background: transparent; transition: .16s ease; }
.app-commandbar__profile:hover, .app-commandbar__profile.is-open { border-color: #dedbd5; background: rgba(255,255,255,.7); }
.app-commandbar__dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + .55rem);
  right: 0;
  width: 15rem;
  filter: drop-shadow(0 22px 35px rgba(15,28,47,.14));
  animation: command-menu-in .18s cubic-bezier(.16,1,.3,1) both;
}
.app-commandbar__avatar { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(135deg, #16253a, #2b405b); font-size: .62rem; font-weight: 800; }
.app-commandbar__user { min-width: 0; text-align: left; }
.app-commandbar__user b, .app-commandbar__user small { display: block; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-commandbar__user b { color: #253248; font-size: .64rem; }
.app-commandbar__user small { margin-top: .12rem; color: #969eaa; font-size: .53rem; }
@keyframes command-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1024px) {
  .app-main { padding: 1rem 1rem .5rem .4rem; }
}
@media (max-width: 1023px) {
  .app-shell { padding: 0; gap: 0; }
  .app-nav-overlay { position: fixed; inset: 0; z-index: 70; display: block; border: 0; background: rgba(5,13,25,.62); backdrop-filter: blur(5px); }
  .app-sidebar { position: fixed; z-index: 80; inset: .65rem auto .65rem .65rem; width: min(17rem, calc(100vw - 1.3rem)); height: auto; transform: translateX(calc(-100% - 1.2rem)); }
  .app-sidebar.is-mobile-open { transform: translateX(0); }
  .app-sidebar__mobile-close { display: grid; margin-left: auto; }
  .app-sidebar__collapse { display: none; }
  .app-commandbar { min-height: 4.6rem; padding-inline: 1rem; border-bottom: 1px solid rgba(218,216,210,.8); background: rgba(245,243,239,.86); backdrop-filter: blur(16px); }
  .app-commandbar__menu { display: grid; }
  .app-main { padding: 1rem; }
}
@media (max-width: 680px) {
  .app-commandbar__search { display: none; }
  .app-commandbar__user, .app-commandbar__profile > svg { display: none; }
  .app-commandbar__profile { padding-right: .3rem; }
  .app-main { padding: .75rem; }
}
.standard-page-header::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -3rem;
  top: -7rem;
  border: 40px solid rgba(255,255,255,.025);
  border-radius: 999px;
  pointer-events: none;
}
.standard-page-header > * { position: relative; z-index: 1; }

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.landing-reveal { animation: landing-rise .7s cubic-bezier(.22,1,.36,1) both; }
.landing-dashboard { animation: landing-rise .9s .15s cubic-bezier(.22,1,.36,1) both; }
.landing-bar { transform-origin: bottom; animation: landing-bar-grow .7s .45s cubic-bezier(.22,1,.36,1) both; }

#capabilities,
#platform,
#governance {
  scroll-margin-top: 5rem;
}

::view-transition-old(root) {
  animation: 180ms cubic-bezier(.4,0,1,1) both page-fade-out;
}

::view-transition-new(root) {
  animation: 320ms cubic-bezier(.16,1,.3,1) both page-fade-in;
}

@keyframes page-fade-out {
  to { opacity: 0; transform: scale(.992); }
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .landing-background-video { display: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

.page-title {
  color: var(--navy);
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-kicker {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.cherry-gradient {
  background: linear-gradient(135deg, var(--navy), var(--cherry));
}

.minimal-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.minimal-input::placeholder {
  color: #9ca3af;
}
.minimal-input:hover { border-color: #cbd5e1; }
.minimal-input:focus { border-color: rgba(163,19,61,.55); box-shadow: 0 0 0 3px rgba(163,19,61,.08); outline: none; }

main article.rounded-2xl {
  border-radius: 18px;
  border-color: rgba(219, 227, 237, 0.9);
  box-shadow: var(--shadow-card);
}
main table { font-variant-numeric: tabular-nums; }
main tbody tr { transition: background-color 160ms ease; }
main tbody tr:hover { background: rgba(247, 249, 252, .85); }

.sidebar-scroll {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.75) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.55);
  border-radius: 999px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--cherry);
}

/* Login experience */
.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  background: #f7f8fb;
}

.login-story {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 4rem);
  color: white;
  background: #07182f;
}
.login-story__video,
.login-story__veil,
.login-story__mesh { position: absolute; inset: 0; }
.login-story__video { z-index: -4; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.login-story__veil {
  z-index: -3;
  background:
    radial-gradient(circle at 78% 22%, rgba(183, 30, 73, .32), transparent 34%),
    linear-gradient(120deg, rgba(5, 20, 41, .97) 8%, rgba(7, 24, 47, .82) 56%, rgba(9, 25, 46, .62));
}
.login-story__mesh {
  z-index: -2;
  opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.login-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  right: -13rem;
  top: 24%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255,255,255,.025), 0 0 0 10rem rgba(255,255,255,.018);
}

.login-brand { display: flex; align-items: center; gap: .85rem; }
.login-brand__mark {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  padding: .28rem;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.login-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.login-brand strong { display: block; font-size: 1.15rem; letter-spacing: -.025em; }
.login-brand strong span, .login-mobile-brand strong span { color: #f5a3ba; }
.login-brand small { display: block; margin-top: .12rem; color: #aab6c8; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }

.login-story__content { max-width: 42rem; animation: login-rise .7s cubic-bezier(.22,1,.36,1) both; }
.login-eyebrow, .login-secure-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #ffd1dd;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.login-eyebrow {
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}
.login-story h1 {
  margin: 1.55rem 0 0;
  max-width: 42rem;
  font-size: clamp(3rem, 5.3vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.login-story h1 em { color: #f2a0b7; font-style: normal; font-weight: 500; }
.login-story__content > p { max-width: 36rem; margin: 1.5rem 0 0; color: #c8d1de; font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.8; }
.login-signals { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 35rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); }
.login-signals div { display: flex; flex-direction: column; gap: .2rem; }
.login-signals strong { font-size: 1.25rem; letter-spacing: -.03em; }
.login-signals span { color: #98a7bb; font-size: .67rem; letter-spacing: .04em; }
.login-story__footer { display: flex; justify-content: space-between; color: #98a7bb; font-size: .7rem; letter-spacing: .03em; }
.login-story__footer > span:first-child { display: flex; align-items: center; gap: .5rem; color: #bec9d7; }
.login-live-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #55d89a; box-shadow: 0 0 0 4px rgba(85,216,154,.12); }

.login-access {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 4.5rem clamp(2rem, 5vw, 5.5rem) 2rem;
}
.login-access__glow {
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -13rem;
  bottom: -15rem;
  border-radius: 50%;
  background: rgba(163,19,61,.08);
  filter: blur(2px);
  pointer-events: none;
}
.login-back {
  position: absolute;
  top: 2rem;
  right: clamp(2rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #68758a;
  font-size: .74rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}
.login-back:hover { color: var(--cherry); transform: translateX(-2px); }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 30rem; animation: login-rise .65s .08s cubic-bezier(.22,1,.36,1) both; }
.login-mobile-brand { display: none; }
.login-secure-label { color: var(--cherry); }
.login-card__heading h2 { margin: .8rem 0 0; color: #101d33; font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.05; letter-spacing: -.055em; }
.login-card__heading p { margin: .65rem 0 0; color: #718096; font-size: .85rem; }
.login-form { display: grid; gap: 1.05rem; margin-top: 2rem; }
.login-form label > span { display: block; margin: 0 0 .45rem .1rem; color: #344158; font-size: .71rem; font-weight: 700; }
.login-input {
  height: 3.35rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 1rem;
  border: 1px solid #dfe4ec;
  border-radius: 13px;
  color: #97a2b2;
  background: rgba(255,255,255,.88);
  box-shadow: 0 5px 18px rgba(17,31,54,.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.login-input:focus-within { border-color: rgba(163,19,61,.58); background: white; box-shadow: 0 0 0 4px rgba(163,19,61,.075), 0 8px 20px rgba(17,31,54,.05); }
.login-input input { min-width: 0; flex: 1; border: 0; outline: 0; color: #17243a; background: transparent; font-size: .83rem; }
.login-input input::placeholder { color: #a3adbc; }
.login-input button { display: grid; place-items: center; padding: .2rem; border: 0; color: #8c98a9; background: transparent; }
.login-input button:hover { color: var(--cherry); }
.login-error { padding: .8rem 1rem; border: 1px solid #fecdd3; border-radius: 11px; color: #9f1239; background: #fff1f2; font-size: .75rem; font-weight: 650; }
.login-submit {
  height: 3.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .25rem;
  padding: 0 1.15rem 0 1.35rem;
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(110deg, #9f1239, #b91c4d);
  box-shadow: 0 14px 28px rgba(159,18,57,.2);
  font-size: .82rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.login-submit:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 17px 32px rgba(159,18,57,.27); }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-divider { display: flex; align-items: center; gap: .85rem; margin: 1.55rem 0 .9rem; color: #9aa4b4; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: #e3e7ed; }
.login-accounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.login-accounts > button {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  color: #536177;
  background: rgba(255,255,255,.72);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.login-accounts > button:hover { transform: translateY(-2px); border-color: #d8a0b1; background: white; }
.login-accounts > button.is-active { border-color: rgba(163,19,61,.42); background: #fff7f9; box-shadow: inset 0 0 0 1px rgba(163,19,61,.06); }
.login-account__icon { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 8px; color: #a3133d; background: #fff0f4; }
.login-accounts strong { display: block; overflow: hidden; color: #29364a; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.login-accounts small { display: block; margin-top: .18rem; overflow: hidden; color: #97a1b0; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.login-account__check { position: absolute; top: .8rem; right: .7rem; display: grid; place-items: center; color: #b3bbc7; }
.login-accounts .is-active .login-account__check { width: 1.3rem; height: 1.3rem; border-radius: 50%; color: white; background: var(--cherry); }
.login-trust { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.3rem; color: #96a0af; font-size: .62rem; }
.login-trust svg { color: #5b9b7d; }

@keyframes login-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); background: #07182f; }
  .login-story { position: fixed; inset: 0; min-height: 100%; padding: 1.5rem; }
  .login-story__content, .login-story__footer, .login-story > .login-brand { display: none; }
  .login-story__veil { background: linear-gradient(rgba(4,17,35,.76), rgba(4,17,35,.91)); }
  .login-access { padding: 5.5rem 1.25rem 2.5rem; background: rgba(246,248,251,.93); backdrop-filter: blur(7px); }
  .login-back { top: 1.6rem; right: 1.4rem; }
  .login-card { max-width: 29rem; padding: 1.6rem; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: 0 24px 70px rgba(5,20,41,.18); backdrop-filter: blur(20px); }
  .login-mobile-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.75rem; }
  .login-mobile-brand .login-brand__mark { width: 2.55rem; height: 2.55rem; border-radius: 11px; box-shadow: 0 8px 22px rgba(13,28,50,.12); }
  .login-mobile-brand strong { color: #16253c; font-size: .95rem; }
}

@media (max-width: 520px) {
  .login-access { align-items: start; padding: 4.7rem .8rem 1rem; }
  .login-back { top: 1.35rem; right: 1rem; color: rgba(255,255,255,.8); }
  .login-card { padding: 1.25rem; border-radius: 19px; }
  .login-card__heading h2 { font-size: 2rem; }
  .login-form { margin-top: 1.5rem; }
  .login-accounts { grid-template-columns: 1fr; }
  .login-accounts > button { flex-direction: row; align-items: center; padding: .65rem .75rem; }
  .login-account__check { top: 50%; transform: translateY(-50%); }
}

/* Sign in with Google */
.login-google-form { margin: 0; }
.login-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .78rem 1rem; border: 1px solid #dfe4eb; border-radius: 13px; background: white; color: #29364a; font-size: .78rem; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: border-color .2s, box-shadow .2s, transform .2s; }
.login-google:hover { border-color: #c9d1dc; box-shadow: 0 6px 16px rgba(15,23,42,.08); transform: translateY(-1px); }
.login-google:focus-visible { outline: 3px solid rgba(163,19,61,.25); outline-offset: 2px; }
.login-google-note { margin: .6rem 0 0; color: #8a95a6; font-size: .66rem; line-height: 1.45; text-align: center; }
