@import url('./tokens.css');
@import url('./components.css');

/* ==========================================================================
   TrustOps Auth & Workspace Onboarding Stylesheet (Strict Light-Only)
   ========================================================================== */

:root {
  --blue: #0284c7;
  --blue-h: #0369a1;
  --blue-l: #38bdf8;
  --blue-subtle: #eff6ff;
  --blue-ring: rgba(2, 132, 199, 0.2);
  --navy: #0f172a;
  --navy-dark: #020617;
  --ink: #0f172a;
  --mute: #475569;
  --mute-light: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --field: #ffffff;
  --soft: #f8fafc;
  --tint: #eff6ff;
  --danger: #be123c;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 20px 25px -5px rgba(15, 23, 42, 0.05);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  font: 14px/1.55 var(--font);
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

button, input, select, textarea { font: inherit; color: inherit; }

a {
  color: #0369a1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
a:hover {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Shell & Layout (Desktop Split: Left Brand, Right Form)
   -------------------------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--soft);
}

@media (min-width: 769px) {
  .shell > .brand { order: -1; }
}

/* Form pane */
.pane {
  overflow-x: clip;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(16px, 4vw, 40px);
  min-width: 0;
  min-height: 100dvh;
  background: #ffffff;
}

.pane-in {
  width: 100%;
  max-width: min(440px, 100%);
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.pane-in.wide {
  max-width: min(540px, 100%);
}

.auth-glass {
  width: 100%;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 769px) {
  .shell > .pane .logo {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Logo & Typography
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  align-self: flex-start;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease);
}
.logo:hover {
  transform: translateY(-1px);
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.wm {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.wm b { color: var(--blue); }

.view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enter {
  animation: enterAnim 0.25s var(--ease) both;
}
@keyframes enterAnim {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--navy);
}

.lead {
  color: var(--mute);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid2 .full { grid-column: 1 / -1; }

label, .legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=date],
input[type=number],
select,
textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--navy);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 36px;
  cursor: pointer;
  line-height: normal;
}

textarea {
  height: auto;
  padding: 10px 13px;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-ring);
}

input[aria-invalid=true],
select[aria-invalid=true] {
  border-color: var(--danger);
}
input[aria-invalid=true]:focus {
  box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.15);
}

.err {
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
  min-height: 1.25em;
  line-height: 1.35;
}

.hint {
  color: var(--mute-light);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Password with toggle */
.pw {
  position: relative;
  display: flex;
  align-items: center;
}
.pw input {
  padding-right: 42px;
}
.tg {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--mute-light);
  cursor: pointer;
  border-radius: 6px;
}
.tg:hover { color: var(--navy); }
.tg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg .off { display: none; }
.tg[aria-pressed=true] .on { display: none; }
.tg[aria-pressed=true] .off { display: block; }

/* Segmented tabs */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  gap: 3px;
}
.seg button {
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.seg button:hover { color: var(--navy); }
.seg button[aria-selected=true] {
  background: #ffffff;
  color: #0369a1;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* OTP single code & digits */
.code {
  letter-spacing: 0.45em;
  text-align: center;
  font-size: 22px;
  font-family: var(--font-mono);
  padding-left: 0.45em !important;
  font-weight: 700;
}
.otp-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0);
}
.otp-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 10px);
  width: 100%;
}
.otp-digit {
  width: 100%;
  height: 50px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.otp-digit:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-ring);
}
.otp-digit.is-pop {
  animation: otpPop 220ms var(--ease);
}
@keyframes otpPop {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}

/* Password strength meter */
.pw-meter {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.pw-meter-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--line);
  overflow: hidden;
}
.pw-meter-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #94a3b8;
  transition: width 220ms var(--ease), background 220ms ease;
}
.pw-meter[data-level="1"] i { background: #e11d48; }
.pw-meter[data-level="2"] i { background: #f59e0b; }
.pw-meter[data-level="3"] i { background: #0284c7; }
.pw-meter[data-level="4"] i { background: #059669; }
.pw-meter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Checkbox */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--mute);
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 1.5px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.check input:hover { border-color: var(--blue); }
.check input:checked {
  background: #0369a1;
  border-color: #0369a1;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.2);
}
.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input[aria-invalid=true] { border-color: var(--danger); }

/* --------------------------------------------------------------------------
   Buttons & Actions
   -------------------------------------------------------------------------- */
.btn {
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.15s var(--ease);
  width: 100%;
  text-decoration: none !important;
  box-shadow: var(--shadow-xs);
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-p {
  background: #0369a1;
  color: #ffffff !important;
  border-color: #0284c7;
}
.btn-p:hover:not(:disabled) {
  background: #0284c7;
  border-color: #0369a1;
}
.btn-o {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-weight: 600;
}
.btn-o:hover:not(:disabled) {
  background: var(--soft);
  border-color: #94a3b8;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.btn-ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn[aria-busy=true] {
  pointer-events: none;
  opacity: 0.85;
}
.btn[aria-busy=true]::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.actions .btn-o { width: auto; padding: 0 18px; }

/* SSO buttons */
.sso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
}
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mute-light);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.or::before, .or::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

/* Alert messages */
.msg {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
}
.msg[data-kind=error] {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}
.msg a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: underline;
}
.msg[data-kind=info] {
  background: var(--blue-subtle);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.msg[data-kind=ok] {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok);
}

.alt {
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}
.foot {
  font-size: 12px;
  color: var(--mute-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}
.foot a {
  font-weight: 500;
  color: var(--mute-light);
}
.foot a:hover { color: #0369a1; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: #0369a1;
  font-weight: 600;
  cursor: pointer;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Signup Multi-Step Wizard Elements
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.steps i {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--line);
  transition: background 220ms ease, transform 220ms ease;
}
.steps i.on {
  background: linear-gradient(90deg, #0284c7, #0d9488);
  transform: scaleY(1.3);
}

/* Plan selector */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.plan {
  position: relative;
  display: block;
  cursor: pointer;
}
.plan input, .chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pc {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.18s var(--ease);
}
.plan:hover .pc {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.plan input:focus-visible + .pc,
.chip input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.plan input:checked + .pc {
  border-color: var(--blue);
  background: #f0f9ff;
  box-shadow: 0 0 0 1px var(--blue), 0 4px 14px rgba(2, 132, 199, 0.08);
}
.pc b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.pc .price {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 3px;
  letter-spacing: -0.02em;
}
.pc .price small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mute);
}
.pc .d {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 6px;
  line-height: 1.4;
}
.pc .tag {
  position: absolute;
  top: -9px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #0284c7;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* Compliance framework chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  background: #ffffff;
  color: #334155;
  transition: all 0.15s ease;
}
.chip:hover span {
  border-color: var(--line-strong);
  color: var(--navy);
}
.chip input:checked + span {
  background: var(--tint);
  border-color: var(--blue);
  color: #0369a1;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--blue);
}

/* Evaluation credentials box (UAT only) */
.eval-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--soft);
}
.eval-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.eval-account-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  width: 100%;
}
.eval-account-card:hover {
  border-color: var(--blue-l);
  background: var(--soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.eval-account-card.is-active {
  border-color: var(--blue);
  background: var(--tint);
  box-shadow: 0 0 0 2px var(--blue-ring);
}
.eval-account-card b {
  display: block;
  font-size: 13px;
  color: var(--navy);
}
.eval-account-card span {
  font-size: 12px;
  color: var(--mute);
}

/* --------------------------------------------------------------------------
   Brand panel — dark, auth pages only
   -------------------------------------------------------------------------- */
.brand {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  color: #f4f7fb;
  background:
    radial-gradient(ellipse 70% 55% at 18% 18%, rgba(43, 139, 196, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 45% at 88% 78%, rgba(0, 84, 152, 0.35), transparent 62%),
    linear-gradient(165deg, #10243c 0%, #0c1b33 46%, #081422 100%);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 0;
}

.brand::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  background-image:
    linear-gradient(rgba(185, 221, 247, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 221, 247, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(#000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: auth-field 22s linear infinite;
}
@keyframes auth-field {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.brand-sweep {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -28%;
  width: 24%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(185, 221, 247, 0.16), transparent);
  animation: auth-sweep 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes auth-sweep {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(520%); }
}


.brand-core {
  position: relative;
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  flex: 1;
}

.brand-mark {
  display: none;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f4f7fb;
  align-items: center;
  gap: 10px;
}
.brand-mark b {
  color: #b9ddf7;
  font-weight: 700;
}

.wmark {
  position: absolute;
  right: -60px;
  bottom: -50px;
  width: min(520px, 70%);
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  filter: brightness(0.85);
  z-index: 0;
}

.brand h2 {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #ffffff;
  max-width: 12em;
  margin: 0;
}

.brand p.sub {
  margin: 16px 0 0;
  color: #c5d4e4;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.55;
}

/* 3D Loop in auth */
.loop-3d--auth {
  width: 100%;
  height: clamp(220px, 36vh, 320px);
  margin-top: clamp(16px, 3vh, 28px);
  position: relative;
}

/* Proof card */
.brand .card {
  margin-top: 28px;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(16, 40, 68, 0.92), rgba(8, 22, 40, 0.9));
  border: 1px solid rgba(185, 221, 247, 0.2);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  animation: auth-card 7.5s ease-in-out 1.3s infinite;
}
@keyframes auth-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.brand .card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #9eb4c9;
  margin-bottom: 4px;
}
.brand .card header b {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}
.brand .std {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  margin-top: 14px;
  color: #d7e4f0;
}
.brand .std span:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8ec8ef;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.brand .bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.brand .bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, #1c70ac, #5eb4e8);
  transform-origin: left center;
  animation: auth-bar 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.brand .std:nth-child(3) .bar i { animation-delay: 0.12s; }
.brand .std:nth-child(4) .bar i { animation-delay: 0.24s; }
@keyframes auth-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.brand .card footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #c5d4e4;
  display: flex;
  gap: 8px;
  align-items: center;
}
.brand .card footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  flex: 0 0 auto;
  animation: auth-live 2.2s ease-out infinite;
}
@keyframes auth-live {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}
.brand-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  font-style: italic;
  color: rgba(197, 212, 228, 0.72);
}

.copy {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(197, 212, 228, 0.72);
  z-index: 2;
  flex-shrink: 0;
  position: relative;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .pane {
    padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 28px);
    align-items: flex-start;
  }
  .pane-in,
  .pane-in.wide,
  .auth-glass {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Compact brand top banner on mobile / tablet */
  .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
    height: auto;
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    background: #0c1b33;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .brand .brand-sweep,
  .brand .wmark,
  .brand .sub,
  .brand .copy,
  .brand .brand-note,
  .brand h2,
  .brand .card {
    display: none !important;
  }
  .brand::before { display: none; }
  .brand-core {
    max-width: 100%;
  }
  .brand-mark {
    display: inline-flex;
    margin: 0;
    font-size: 1.15rem;
  }
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .shell > .brand { order: -1; }
}

@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .pc .d { display: none; }
  .sso { grid-template-columns: 1fr; }
}

@media (max-height: 760px) {
  .pane-in { gap: 16px; }
  .view { gap: 14px; }
  form { gap: 12px; }
  h1 { font-size: 22px; }
  .lead { margin-top: 3px; }
  .grid2 { gap: 12px; }
  .pc { padding: 9px 12px; }
  .pc .d { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
  .brand::before,
  .brand-sweep,
  .brand .card,
  .brand .bar i,
  .brand .card footer i {
    animation: none !important;
  }
  .brand .bar i { transform: none; }
}
