/* ═══════════════════════════════════════════════════════════════
   ARKAN Authentication — Production Stylesheet
   Carousel layout · ServiceNow / CrowdStrike quality · Dark theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Login mode overrides ────────────────────────────────────── */

body.login-mode { display: block; background: #020817; overflow: hidden; }
body.login-mode #app-header,
body.login-mode #app-sidebar  { display: none; }
body.login-mode #app-main     {
  grid-area: unset; padding: 0; overflow: hidden;
  display: block; width: 100%; height: 100vh;
}

/* ── Root split — 65 / 35 ─────────────────────────────────────── */

.auth-root {
  display: grid;
  grid-template-columns: 1.857fr 1fr;   /* 65 / 35 */
  height: 100vh;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: #020817;
}

/* ═══════════════════════════════════════════════════════════════
   LEFT PANEL
   ═══════════════════════════════════════════════════════════════ */

.auth-visual {
  position: relative;
  background: linear-gradient(155deg, #020817 0%, #061120 45%, #0A1A33 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 48px 20px;
}

/* ── Network background ──────────────────────────────────────── */

.auth-net-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
}

.auth-net-bg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Brand ───────────────────────────────────────────────────── */

.auth-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  animation: authFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.auth-brand__logo {
  width: 52px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(30,136,229,0.22));
  user-select: none;
  flex-shrink: 0;
}

.auth-brand__copy { display: flex; flex-direction: column; gap: 2px; }

.auth-brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8F2FF;
  line-height: 1;
}

.auth-brand__tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(148,172,196,0.55);
  line-height: 1;
}

/* ── Hero ────────────────────────────────────────────────────── */

.auth-hero {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  animation: authFadeUp 0.55s 0.05s cubic-bezier(0.16,1,0.3,1) both;
}

.auth-hero__title {
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 800;
  color: #EAF4FF;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.auth-hero__accent {
  font-style: normal;
  background: linear-gradient(90deg, #1677FF 0%, #3B9CFF 60%, #5BB8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-hero__desc {
  font-size: 14px;
  color: rgba(148,172,196,0.65);
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* ── Carousel wrapper ────────────────────────────────────────── */

.auth-carousel {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: authFadeUp 0.6s 0.1s cubic-bezier(0.16,1,0.3,1) both;
}

.amc-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.amc-track {
  display: flex;
  gap: 20px;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Module card ─────────────────────────────────────────────── */

.amc-card {
  flex: 0 0 clamp(340px, 32vw, 460px);
  height: 100%;
  background: rgba(6,14,30,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30,136,229,0.12);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  opacity: 0.45;
  transform: scale(0.95);
  transition: opacity 0.50s cubic-bezier(0.4,0,0.2,1),
              transform 0.50s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.50s, border-color 0.50s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.amc-card--active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(30,136,229,0.28);
  box-shadow: 0 10px 40px rgba(0,0,0,0.40),
              0 0 0 1px rgba(30,136,229,0.10),
              0 0 80px rgba(30,136,229,0.06),
              0 2px 0 rgba(30,136,229,0.20) inset;
}

/* ── Capability tags ─────────────────────────────────────────── */

.amc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.amc-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(30,136,229,0.08);
  border: 1px solid rgba(30,136,229,0.15);
  color: rgba(120,168,215,0.72);
  white-space: nowrap;
  line-height: 1.6;
}

/* Card header */

.amc-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.amc-icon {
  width: 46px;
  height: 46px;
  background: rgba(30,136,229,0.12);
  border: 1px solid rgba(30,136,229,0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3DA8F0;
  flex-shrink: 0;
}

.amc-head-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

.amc-title {
  font-size: 15px;
  font-weight: 700;
  color: #EAF2FF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.amc-sub {
  font-size: 12px;
  color: rgba(120,155,195,0.65);
  line-height: 1.45;
}

/* Stat grid (2×2 or 3) */

.amc-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.amc-stat-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.amc-stat-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(30,136,229,0.09);
  border-radius: 10px;
  padding: 10px 12px;
}

.amc-stat-cell--red  { border-color: rgba(239,68,68,0.18); }
.amc-stat-cell--green { border-color: rgba(34,197,94,0.18); }

.amc-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100,140,180,0.65);
  margin-bottom: 4px;
}

.amc-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #D8EAFF;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 2px;
}

.amc-stat-val--red   { color: #F87171; }
.amc-stat-val--green { color: #4ADE80; }
.amc-stat-val--amber { color: #FBBF24; }

/* Incident / work order list */

.amc-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100,140,180,0.55);
}

.amc-viewall {
  color: #1E88E5;
  cursor: pointer;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.15s;
}
.amc-viewall:hover { color: #60BBFF; }

.amc-rows { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.amc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(30,136,229,0.07);
  border-radius: 8px;
  min-width: 0;
}

.amc-row--simple { gap: 0; }

.amc-row-id {
  font-size: 11px;
  font-weight: 600;
  color: rgba(100,140,180,0.65);
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
  white-space: nowrap;
}

.amc-row-desc {
  font-size: 12px;
  color: rgba(185,210,240,0.80);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amc-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.amc-pill--blue { background: rgba(30,136,229,0.18); color: #60BBFF; border: 1px solid rgba(30,136,229,0.28); }
.amc-pill--out  { background: transparent; color: rgba(120,155,195,0.60); border: 1px solid rgba(30,136,229,0.15); }

/* IT Assets card */

.amc-asset-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amc-asset-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(100,140,180,0.60);
}

.amc-asset-num {
  font-size: 32px;
  font-weight: 800;
  color: #D8EAFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.amc-asset-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.amc-asset-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(30,136,229,0.07);
  font-size: 13px;
  color: rgba(160,195,235,0.75);
}

.amc-asset-row svg { color: rgba(100,140,180,0.50); flex-shrink: 0; }
.amc-asset-row > span:first-of-type { flex: 1; }
.amc-asset-count { font-weight: 600; color: #C8E0F8; }

/* Inventory card */

.amc-inv-hero { display: flex; flex-direction: column; gap: 2px; }
.amc-inv-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em; color: rgba(100,140,180,0.60); }
.amc-inv-num { font-size: 32px; font-weight: 800; color: #D8EAFF; letter-spacing: -0.03em; line-height: 1; }
.amc-inv-unit { font-size: 11px; color: rgba(100,140,180,0.50); margin-top: 2px; }

.amc-inv-rows { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.amc-inv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(30,136,229,0.07);
  font-size: 13px;
  color: rgba(160,195,235,0.75);
}

.amc-inv-row svg { color: rgba(100,140,180,0.50); flex-shrink: 0; }
.amc-inv-row > span:first-of-type { flex: 1; }
.amc-inv-val { font-weight: 600; color: #C8E0F8; }
.amc-inv-val--warn { color: #FBBF24; }

/* ── Nav arrows ──────────────────────────────────────────────── */

.amc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7,18,38,0.85);
  border: 1px solid rgba(30,136,229,0.22);
  color: rgba(160,200,240,0.80);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  backdrop-filter: blur(8px);
}

.amc-nav:hover {
  background: rgba(30,136,229,0.15);
  border-color: rgba(30,136,229,0.45);
  color: #60BBFF;
  transform: translateY(-50%) scale(1.08);
}

.amc-nav--prev { left: -20px; }
.amc-nav--next { right: -20px; }

/* ── Pagination dots ─────────────────────────────────────────── */

.amc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 0;
}

.amc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30,136,229,0.20);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.amc-dot--active {
  width: 24px;
  border-radius: 4px;
  background: #1E88E5;
}

/* ── Features bar ────────────────────────────────────────────── */

.auth-features {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(30,136,229,0.10);
  margin-top: 12px;
  animation: authFadeUp 0.6s 0.18s cubic-bezier(0.16,1,0.3,1) both;
}

.auth-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: rgba(100,140,180,0.60);
}

.auth-feat > svg { flex-shrink: 0; color: rgba(30,136,229,0.55); }

.auth-feat > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.auth-feat strong {
  font-size: 12px;
  font-weight: 700;
  color: rgba(185,210,240,0.80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-feat span {
  font-size: 10px;
  color: rgba(100,140,180,0.50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-feat-sep {
  width: 1px;
  height: 32px;
  background: rgba(30,136,229,0.12);
  margin: 0 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT PANEL
   ═══════════════════════════════════════════════════════════════ */

.auth-panel {
  position: relative;
  background: linear-gradient(160deg, #040C1C 0%, #060F1E 100%);
  border-left: 1px solid rgba(21,112,196,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Subtle top glow */
.auth-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1677FF 40%, #3B9CFF 60%, transparent);
  opacity: 0.30;
}

.auth-panel__inner {
  width: 100%;
  max-width: 420px;
  background: rgba(8,18,38,0.60);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(30,136,229,0.14);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40),
              0 0 0 1px rgba(30,136,229,0.06),
              0 1px 0 rgba(255,255,255,0.03) inset;
  display: flex;
  flex-direction: column;
}

/* ── View container ──────────────────────────────────────────── */

.auth-view { width: 100%; }
.auth-view--hidden    { display: none; }
.auth-view--entering  { animation: authViewEnter 0.32s cubic-bezier(0.16,1,0.3,1) both; }
.auth-view--leaving   { animation: authViewLeave 0.18s ease-in both; }

/* ── Step indicators ─────────────────────────────────────────── */

.auth-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 32px; }
.auth-step { height: 3px; border-radius: 2px; background: rgba(21,112,196,0.2); width: 8px; transition: all 0.3s; }
.auth-step--active { width: 22px; background: #1E88E5; }
.auth-step--done   { background: rgba(30,136,229,0.38); }

/* ── Form header ─────────────────────────────────────────────── */

.auth-form-header { margin-bottom: 24px; }

.auth-form-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1E88E5;
  margin-bottom: 8px;
}

.auth-form-title {
  font-size: 17px;
  font-weight: 600;
  color: rgba(185,210,240,0.75);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.auth-form-desc { font-size: 13px; color: rgba(148,172,196,0.65); line-height: 1.55; }
.auth-form-desc strong { color: rgba(208,220,236,0.85); font-weight: 500; }

/* ── Fields ──────────────────────────────────────────────────── */

.auth-field { margin-bottom: 16px; }

.auth-field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(148,172,196,0.6);
  margin-bottom: 7px;
}

.auth-field__label-link {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #1E88E5;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.auth-field__label-link:hover { color: #60BBFF; }

.auth-input-wrap { position: relative; }

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(96,136,176,0.45);
  pointer-events: none;
  transition: color 0.15s;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  height: 56px;
  padding: 0 14px 0 44px;
  background: rgba(10,24,44,0.70);
  border: 1px solid rgba(21,112,196,0.20);
  border-radius: 10px;
  color: #F0F6FF;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: rgba(96,136,176,0.35); }
.auth-input:hover         { border-color: rgba(30,136,229,0.32); background: rgba(10,24,44,0.88); }
.auth-input:focus         {
  border-color: #1E88E5;
  background: rgba(30,136,229,0.05);
  box-shadow: 0 0 0 3px rgba(30,136,229,0.10), 0 1px 3px rgba(0,0,0,0.3);
}
.auth-input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon { color: #1E88E5; }
.auth-input--no-icon    { padding-left: 14px; }
.auth-input--has-toggle { padding-right: 44px; }
.auth-input--error      { border-color: rgba(30,136,229,0.5) !important; }

.auth-input-toggle {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(96,136,176,0.4);
  cursor: pointer; padding: 4px; line-height: 0; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.auth-input-toggle:hover { color: #60BBFF; background: rgba(30,136,229,0.08); }

/* ── Feedback ────────────────────────────────────────────────── */

.auth-error {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: rgba(30,136,229,0.06);
  border: 1px solid rgba(30,136,229,0.18);
  border-radius: 10px;
  color: #90CAF9; font-size: 13px; line-height: 1.45;
  margin-bottom: 16px;
  animation: authShake 0.35s cubic-bezier(0.36,0.07,0.19,0.97);
}
.auth-error[hidden] { display: none; }
.auth-error svg     { flex-shrink: 0; margin-top: 1px; }

.auth-success {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: rgba(30,136,229,0.08); border: 1px solid rgba(30,136,229,0.22);
  border-radius: 10px; color: #60BBFF; font-size: 13px; line-height: 1.45;
  margin-bottom: 16px;
}
.auth-success[hidden] { display: none; }

/* ── Row / checkbox ──────────────────────────────────────────── */

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.auth-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.auth-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1E88E5; cursor: pointer; }
.auth-checkbox span { font-size: 13px; color: rgba(148,172,196,0.55); }

/* ── Primary button ──────────────────────────────────────────── */

.auth-btn {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #1677FF, #3B9CFF);
  border: none; border-radius: 10px;
  color: #fff; font-size: 15px; font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(22,119,255,0.32), 0 1px 3px rgba(0,0,0,0.3);
  margin-top: 4px;
}
.auth-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
}
.auth-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(22,119,255,0.42), 0 2px 6px rgba(0,0,0,0.3); }
.auth-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(22,119,255,0.22); }
.auth-btn:disabled { opacity: 0.50; cursor: not-allowed; transform: none; }

.auth-btn__spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

/* SSO ghost button */
.auth-btn--ghost {
  background: rgba(10,24,44,0.55);
  border: 1px solid rgba(30,136,229,0.22);
  box-shadow: none;
  color: rgba(160,200,240,0.75);
  font-weight: 600;
  font-size: 14px;
}
.auth-btn--ghost::before { display: none; }
.auth-btn--ghost:hover {
  background: rgba(30,136,229,0.08);
  border-color: rgba(30,136,229,0.38);
  color: #E8F2FF;
  box-shadow: none;
}

.auth-btn--sso { margin-top: 0; }

/* ── Divider ─────────────────────────────────────────────────── */

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  color: rgba(80,120,160,0.45);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(30,136,229,0.12); }

/* ── Security row ────────────────────────────────────────────── */

.auth-security-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: rgba(80,120,160,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.auth-security-row svg { flex-shrink: 0; opacity: 0.6; }

/* ── Footer ──────────────────────────────────────────────────── */

.auth-footer { text-align: center; margin-top: 16px; font-size: 12px; color: rgba(96,136,176,0.45); }
.auth-footer .auth-link { color: #1E88E5; cursor: pointer; text-decoration: none; transition: color 0.15s; }
.auth-footer .auth-link:hover { color: #60BBFF; }
.auth-link { color: #1E88E5; cursor: pointer; text-decoration: none; transition: color 0.15s; }

/* ── Back link ───────────────────────────────────────────────── */

.auth-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  color: rgba(96,136,176,0.65);
  cursor: pointer; border: none; background: none;
  padding: 0; margin-bottom: 24px;
  transition: color 0.15s; font-family: var(--font-sans);
}
.auth-back:hover { color: #1E88E5; }
.auth-back:hover svg { transform: translateX(-3px); }
.auth-back svg { transition: transform 0.15s; }

/* ── Security badge (older views) ───────────────────────────── */

.auth-security {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 10px 16px;
  background: rgba(30,136,229,0.04);
  border: 1px solid rgba(30,136,229,0.10);
  border-radius: 10px;
  font-size: 11px; color: rgba(96,187,255,0.55);
  font-weight: 500; letter-spacing: 0.03em;
}

/* ── OTP digits ──────────────────────────────────────────────── */

.auth-otp { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.auth-otp__digit {
  width: 52px; height: 60px;
  background: rgba(10,24,44,0.7);
  border: 1px solid rgba(21,112,196,0.2);
  border-radius: 10px; color: #F0F6FF;
  font-size: 22px; font-weight: 700; text-align: center; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: var(--font-mono); -moz-appearance: textfield;
}
.auth-otp__digit::-webkit-inner-spin-button,
.auth-otp__digit::-webkit-outer-spin-button { -webkit-appearance: none; }
.auth-otp__digit:focus { border-color: #1E88E5; background: rgba(30,136,229,0.07); box-shadow: 0 0 0 3px rgba(30,136,229,0.12); }
.auth-otp__digit--filled { border-color: rgba(30,136,229,0.55); background: rgba(30,136,229,0.07); color: #60BBFF; }

/* ── Tenant cards ────────────────────────────────────────────── */

.auth-tenant-grid { display: grid; gap: 10px; margin-bottom: 20px; }
.auth-tenant-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(10,24,44,0.6);
  border: 1px solid rgba(21,112,196,0.18);
  border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  user-select: none;
}
.auth-tenant-card:hover { background: rgba(30,136,229,0.06); border-color: rgba(30,136,229,0.3); transform: translateX(2px); }
.auth-tenant-card--selected { background: rgba(30,136,229,0.07); border-color: #1E88E5; box-shadow: 0 0 0 3px rgba(30,136,229,0.09); }
.auth-tenant-card__avatar { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.auth-tenant-card__info { flex: 1; min-width: 0; }
.auth-tenant-card__name { font-size: 14px; font-weight: 600; color: #F0F6FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-tenant-card__role { font-size: 11px; color: rgba(96,136,176,0.6); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.auth-tenant-card__check { color: #1E88E5; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.auth-tenant-card--selected .auth-tenant-card__check { opacity: 1; }

/* ── MFA ─────────────────────────────────────────────────────── */

.auth-mfa-info { text-align: center; margin-bottom: 24px; }
.auth-mfa-icon { width: 60px; height: 60px; background: linear-gradient(135deg, rgba(30,136,229,0.11), rgba(21,112,196,0.07)); border: 1px solid rgba(30,136,229,0.18); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.auth-mfa-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(96,136,176,0.55); margin-top: 10px; }
.auth-mfa-timer__dot { width: 6px; height: 6px; border-radius: 50%; background: #1E88E5; animation: authPulse 2s ease-in-out infinite; }

/* ── Password strength ───────────────────────────────────────── */

.auth-strength { margin-top: 8px; }
.auth-strength__bar { height: 2px; border-radius: 2px; background: rgba(21,112,196,0.15); overflow: hidden; margin-bottom: 5px; }
.auth-strength__fill { height: 100%; border-radius: 2px; transition: width 0.4s, background 0.4s; }
.auth-strength__label { font-size: 11px; color: rgba(96,136,176,0.5); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes authViewEnter {
  from { opacity: 0; transform: translateX(14px) scale(0.99); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes authViewLeave {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-12px); }
}
@keyframes authSpin    { to { transform: rotate(360deg); } }
@keyframes authShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}
@keyframes authPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .auth-root { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel  { border-left: none; }
}
@media (max-width: 480px) {
  .auth-panel { padding: 32px 24px; }
  .auth-otp__digit { width: 44px; height: 54px; font-size: 18px; }
}
