/* ═══════════════════════════════════════════════════════════════
   NADI Auth Stylesheet — Login / SSO page
═══════════════════════════════════════════════════════════════ */

html, body { height: 100vh; overflow: hidden; }

.page { display: flex; height: 100vh; overflow: hidden; }

/* ── Left panel ───────────────────────────────────────────── */
.lp {
  position: relative; flex: 0 0 58%;
  display: flex; flex-direction: column;
  padding: 40px 54px 32px; overflow: hidden; isolation: isolate;
}
.lp::before {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(145deg,
    #091828 0%, #0c2640 20%, #0f3d58 40%,
    #156660 65%, #1d8474 85%, #228a7c 100%);
}
.lp::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* Decorative glows */
.lp-glow-a {
  /* Glossy highlight — upper centre */
  position: absolute; z-index: -2; pointer-events: none;
  top: -60px; left: 15%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.13) 0%, rgba(100,210,190,.06) 40%, transparent 70%);
  filter: blur(28px);
}
.lp-glow-b {
  /* Vibrant teal — lower right */
  position: absolute; z-index: -2; pointer-events: none;
  bottom: -80px; right: -60px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,138,124,.55) 0%, transparent 65%);
  filter: blur(6px);
}
.lp-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.lp-ring {
  position: absolute; z-index: -1; pointer-events: none;
  top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid rgba(116,193,161,.14);
}
.lp-ring::after {
  content: ''; position: absolute; inset: 44px; border-radius: 50%;
  border: 1px solid rgba(116,193,161,.07);
}
.lp-bar {
  position: absolute; z-index: 1; pointer-events: none;
  top: 20%; left: 0; width: 3px; height: 180px; border-radius: var(--pill);
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  animation: barPulse 3.2s ease-in-out infinite;
}
@keyframes barPulse { 0%,100%{opacity:.9} 50%{opacity:.3} }

.panel-left > * { position: relative; z-index: 3; }

/* Left header */
.lp-header { flex-shrink: 0; animation: fadeSlideDown .6s cubic-bezier(.22,.61,.36,1) .05s both; }
.lp-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .88; }

/* Left hero */
.lp-hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 12px 0; animation: fadeSlideLeft .65s cubic-bezier(.22,.61,.36,1) .12s both;
}
/* Eyebrow — lives inside .lp-header alongside the UBD logo so it
   stays glued to the logo's left edge on every viewport width.
   Explicit margin-left:0 + text-align:left guard against any flex
   parent ever centring it. */
.lp-eyebrow {
  font-size: 9.5px; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
  margin: 10px 0 0;
  text-align: left;
  align-self: flex-start;
}
/* ── NADI hero wordmark ─────────────────────────────────────
   Inlines the cropped NADI_White-Landscape SVG so we can drive
   colours from CSS. The wordmark is one compound path (letters
   n-a-d-i fused) + a separate path for the asterisk — the
   asterisk is independently styleable, the letters are not.

   viewBox is cropped tight so:
   • no invisible left/right padding (wordmark sits flush left)
   • the SVG's bottom edge IS the wordmark baseline, so the
     trailing dot rendered via flex `align-items:flex-end` lands
     on the baseline instead of below it. */
/* NADI hero wordmark — text-formatted lockup (reverted from the
   SVG image logo). "NADI" in heavy white type with the "A" carrying
   a teal→gold gradient, closed by a Saffron dot. */
.lp-wordmark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  /* Match the tagline rule's span so NADI sits centred over it. The vw rate
     and bounds track .lp-nadi's font clamp (clamp(135px,15.5vw,220px)) so
     both reach their min/max at the SAME viewport widths (~871px / ~1419px).
     Previously the bar used 46vw/380–580px, which saturated ~160px earlier
     than the letters — so on mid-width desktops the bar froze while the
     letters kept growing and the bar mis-spanned them. */
  max-width: clamp(356px, 40.9vw, 525px);
  /* No negative pull: the rule should sit AT the letters' baseline and just
     touch them, not be dragged up through the glyphs. Fine vertical spacing
     is handled by .lp-nadi's line-height below (proportional to the font, so
     the bar touches consistently at every screen size). */
  margin-bottom: 0;
  line-height: 1;
}
/* NADI brand logo (replaces the text wordmark). The SVG carries transparent
   bloom-room around the flower, so the "nadi" word fills ~86% of the file;
   sizing the img a touch wider makes the word span the tagline width.
   Distinct class from the UBD header `.lp-logo` to avoid collisions. */
.lp-brandmark {
  display: block; height: auto;
  width: 116%; max-width: none; margin: 0 auto;
}
.lp-nadi {
  /* Hero-scale: tracks viewport width so the wordmark fills the
     same span as the tagline rule beneath it (clamps from 110px on
     small viewports up to 180px on wide screens). */
  font-size: clamp(135px, 15.5vw, 220px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #fff;
  /* Crops the line-box just enough that its bottom edge lands ON the
     letters' baseline, so the rule beneath sits flush against the glyphs.
     Lower = bar rises toward the letters; higher = bar drops away. Em-based,
     so the touch point holds at every viewport width. */
  line-height: 0.82;
  text-shadow: 0 0 80px rgba(50, 84, 148, .5);
}
.lp-nadi .a {
  background: linear-gradient(135deg, var(--teal) 0%, #a8e6ca 40%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Custom "i" — a shortened white stem with a styled Saffron sparkle
   floated above it, so the whole mark's top aligns with the cap
   height of N · A · D (the dot no longer overshoots the text).
   Tune: stem thickness = .lp-i width; total height = .lp-i height
   (= cap height); stem length = ::before height; sparkle size and
   gap = .lp-i-spark width/height. Echoes the brand star-over-the-i. */
.lp-nadi .lp-i {
  position: relative;
  display: inline-block;
  width: 0.17em;          /* stem thickness — matches the heavy stroke */
  height: 0.72em;         /* cap height of the surrounding letters */
  margin-left: 0.06em;
  vertical-align: baseline;
}
.lp-nadi .lp-i::before {  /* the stem — bottom portion, white to match */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.50em;          /* taller so it balances the caps, less stubby */
  background: #fff;
  border-radius: 0.025em;  /* crisp corners to match the geometric caps */
}
.lp-nadi .lp-i-spark {    /* the sparkle — raised above the stem for prominence */
  position: absolute;
  left: 50%;
  top: -0.12em;
  width: 0.36em;
  height: 0.36em;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 7px rgba(249, 152, 47, .6));
}
/* Gentle twinkle — subtle scale + shimmer, paused for users who
   prefer reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .lp-nadi .lp-i-spark {
    animation: nadiSparkTwinkle 3.4s ease-in-out infinite;
  }
}
@keyframes nadiSparkTwinkle {
  0%   { transform: translateX(-50%) scale(1)    rotate(-8deg); opacity: .92; }
  50%  { transform: translateX(-50%) scale(1.08) rotate(8deg);  opacity: 1;   }
  100% { transform: translateX(-50%) scale(1)    rotate(-8deg); opacity: .92; }
}

/* Legacy trailing-period dot (kept for easy A/B revert; unused
   while the tittle treatment above is active). */
.lp-nadi-dot {
  font-size: clamp(135px, 15.5vw, 220px);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin-left: 3px;
  letter-spacing: 0;
}

/* Tagline block — sits directly beneath the wordmark and shares
   its width. Stack order: coloured fade-rule on top, brand
   expansion text below. */
.lp-wordmark-tagline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Same clamp as .lp-wordmark so the rule + text line up with the
     wordmark's outer edges and scale in lockstep with the letters. */
  width: 100%;
  max-width: clamp(356px, 40.9vw, 525px);
  margin: 0 0 26px;
}

/* Multi-colour brand rule — Indigo → Dodger → Aqua → Dodger → Indigo
   so it reads as a brand band. The radial mask makes it visibly
   thicker in the centre and feather-fades at both ends (and at
   the top/bottom edges) for a lens-like glow. */
.lp-wordmark-rule {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(42, 26, 140, .85)   0%,
    rgba(249, 152, 47, .95) 16%,   /* saffron touch, left */
    rgba(57, 125, 232, 1)   36%,
    rgba(45, 228, 231, 1)   50%,
    rgba(57, 125, 232, 1)   64%,
    rgba(249, 152, 47, .95) 84%,   /* saffron touch, right */
    rgba(42, 26, 140, .85) 100%
  );
  -webkit-mask: radial-gradient(ellipse 55% 100% at 50% 50%, #000 50%, transparent 100%);
          mask: radial-gradient(ellipse 55% 100% at 50% 50%, #000 50%, transparent 100%);
  box-shadow:
    0 0 18px rgba(45, 228, 231, .30),
    0 0 24px rgba(249, 152, 47, .18);   /* warm halo */
}

/* Brand-expansion text — tracked-out (wide letter-spacing) so it
   reads at the wordmark's full width without yawning word-gaps.
   Em-tagged nouns pick up pure white for visual rhythm. */
.lp-wordmark-text {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .32em;     /* the spread that makes it fit nicely */
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  line-height: 1.4;
  text-align: center;
  /* Compensate for trailing letter-spacing on the last character so
     the visual line stays centred. */
  margin-right: -.32em;
  white-space: nowrap;
}
.lp-wordmark-text em {
  font-style: normal;
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 720px) {
  .lp-wordmark-text {
    letter-spacing: .22em;
    white-space: normal;
    text-align: left;
    margin-right: 0;
  }
}
.lp-subtitle {
  font-size: 14.5px; font-weight: 300; color: rgba(255,255,255,.65);
  line-height: 1.7; margin-bottom: 26px; max-width: 330px;
}
.lp-subtitle strong { font-weight: 600; color: rgba(255,255,255,.92); }

/* Systems divider — extra top margin separates this section
   from the wordmark tagline above. */
.lp-systems-label {
  display: flex; align-items: center; gap: 12px;
  margin-top: 38px; margin-bottom: 13px;
}
.lp-systems-label::before, .lp-systems-label::after {
  content: ''; flex: 1; height: 1px;
}
.lp-systems-label::before { background: linear-gradient(90deg, transparent, rgba(245,201,70,.45)); }
.lp-systems-label::after  { background: linear-gradient(90deg, rgba(245,201,70,.45), transparent); }
.lp-systems-label span {
  font-size: 9px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.28); white-space: nowrap; padding: 0 4px;
}

/* System badges — always 4 equal columns on one row, on any viewport.
   `minmax(0, 1fr)` (not plain `1fr`, which is `minmax(auto, 1fr)`) removes
   each track's content-based minimum, so long labels can't force the row
   wider than its container and push it to wrap. */
.sys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sys-item {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; /* let the item shrink below its content's natural width */
  padding: 7px 8px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
  cursor: default; transition: background .2s, border-color .2s;
}
.sys-item:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
/* Linked platforms (CareerBN, Canvas) — clickable, open in a new tab. */
a.sys-item { text-decoration: none; cursor: pointer; }
a.sys-item:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); }
.sys-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sys-item.live .sys-dot {
  background: var(--teal); box-shadow: 0 0 0 2px rgba(116,193,161,.25);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100%{ box-shadow: 0 0 0 2px rgba(116,193,161,.25); }
  50%    { box-shadow: 0 0 0 5px rgba(116,193,161,.0); }
}
.sys-item.soon .sys-dot { background: rgba(245,201,70,.45); }
.sys-name {
  font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; /* without this the nowrap text's full width becomes an unshrinkable floor, blocking the ellipsis above */
}
.sys-item.live .sys-name { color: var(--teal-light); }
.sys-item.soon .sys-name { color: rgba(255,255,255,.50); }

/* Status strip */
.lp-status {
  flex-shrink: 0; display: flex; align-items: stretch;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md); overflow: hidden;
  margin: 18px 0; animation: fadeSlideUp .6s cubic-bezier(.22,.61,.36,1) .25s both;
}
.stat { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 16px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }
.stat-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-ico.teal  { background: rgba(116,193,161,.18); color: #8ed9ba; }
.stat-ico.gold  { background: rgba(245,201,70,.16);  color: var(--gold); }
.stat-ico.blue  { background: rgba(100,148,255,.18); color: #8ab4ff; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-label {
  font-size: 9px; font-weight: 600; letter-spacing: .10em;
  text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 1px;
}
.stat-value { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.stat-online { display: flex; align-items: center; gap: 5px; }
.online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.6);
  animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Left footer */
.lp-footer {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
  animation: fadeSlideUp .6s cubic-bezier(.22,.61,.36,1) .30s both;
}
.lp-footer-copy { font-size: 10.5px; color: rgba(255,255,255,.22); }
.lp-footer-copy a { color: rgba(116,193,161,.50); text-decoration: none; }
.lp-footer-copy a:hover { color: var(--teal); }
/* Copyright link to ubd.edu.bn — stays as muted text, just clickable. */
.lp-footer-copy a.lp-copy-link { color: inherit; }
.lp-footer-copy a.lp-copy-link:hover { color: rgba(255,255,255,.5); }
/* UBD logo links to the official site; brighten slightly on hover. */
.lp-logo a { display: inline-block; line-height: 0; }
.lp-logo a:hover img { opacity: 1; }
.lp-footer-ver { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: rgba(255,255,255,.18); }
.ver-pip { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .4; }

/* Left panel animations */
@keyframes fadeSlideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeSlideLeft { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeSlideUp   { from{opacity:0;transform:translateY(10px)}  to{opacity:1;transform:translateY(0)} }

/* ── Right panel ──────────────────────────────────────────── */
.rp {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 32px; position: relative; overflow: hidden;
  background: #eef1f8;
}
.rp::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255,255,255,.80) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 100% 100%, rgba(50,84,148,.07) 0%, transparent 60%),
    linear-gradient(165deg, #f7f9ff 0%, #eef1f8 50%, #e8edf8 100%);
}
.rp::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(50,84,148,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.rp-arc {
  position: absolute; bottom: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(50,84,148,.08); pointer-events: none; z-index: 0;
}
.rp-arc::after {
  content: ''; position: absolute; inset: 28px; border-radius: 50%;
  border: 1px solid rgba(50,84,148,.05);
}

/* AY badge */
.ay-pill {
  position: absolute; top: 28px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.90); border: 1px solid rgba(50,84,148,.12);
  border-radius: var(--pill); padding: 5px 14px 5px 10px;
  font-size: 10.5px; font-weight: 600; color: var(--ocean); letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(50,84,148,.08); backdrop-filter: blur(8px);
}
.ay-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Login card */
.card {
  position: relative; z-index: 2;
  width: 100%; max-width: 400px; background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(17,24,39,.10), 0 6px 20px rgba(50,84,148,.08), 0 1px 3px rgba(17,24,39,.06);
  border: 1px solid rgba(50,84,148,.06); overflow: hidden;
  animation: cardRise .55s cubic-bezier(.22,.61,.36,1) .10s both;
}
@keyframes cardRise {
  from{opacity:0;transform:translateY(20px) scale(.98)} to{opacity:1;transform:translateY(0) scale(1)}
}
.card-band { height: 4px; background: linear-gradient(90deg, var(--gold) 0%, #fad96a 30%, var(--teal) 70%, #5ab898 100%); }
.card-body { padding: 36px 40px 32px; }

/* Card brand */
.card-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; }
/* Card brand icon — layered composition.
   The NADI Icon-01 SVG sits inside a circular halo with a soft
   radial backdrop + a slowly-rotating dashed orbital ring. Now
   inlined so we can recolour the asterisk path separately. */
.brand-icon {
  position: relative;
  width: 168px; height: 168px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 45%,
      rgba(45, 228, 231, .14) 0%,
      rgba(57, 125, 232, .10) 30%,
      rgba(42, 26, 140, .08) 55%,
      transparent 75%);
  border-radius: 50%;
}
/* Saffron dashed orbit — slow, clockwise. Matches the asterisk
   accent so the icon reads as a small system of warm motion
   against the cool indigo glyph at the centre. */
.brand-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(249, 152, 47, .42);
  animation: brand-icon-orbit 32s linear infinite;
}
/* Bright Saffron satellite dot — traces the dashed ring in the
   opposite direction at a faster pace. Implemented as a tiny
   radial gradient hot-spot at the top of a transparent circular
   element; rotating the element sweeps the dot around the orbit
   without any extra HTML. */
.brand-icon::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle 8px at 50% 0%,
      rgba(249, 152, 47, .35) 0%,
      rgba(249, 152, 47, 0) 100%),
    radial-gradient(circle 5px at 50% 0%,
      #f9982f 0%,
      #f9982f 65%,
      rgba(249, 152, 47, 0) 100%);
  animation: brand-icon-satellite 11s linear infinite;
  pointer-events: none;
}
.brand-icon svg,
.brand-icon img {
  position: relative;
  z-index: 1;
  width: 110px; height: 110px;
  filter:
    drop-shadow(0 10px 24px rgba(42, 26, 140,.30))
    drop-shadow(0 2px 6px rgba(42, 26, 140,.18));
}
/* Asterisk recolour — the original SVG paints the six-point
   star with a radial Indigo→Aqua gradient; we override it to
   a flat Saffron so the asterisk reads as a warm punctuation
   accent, matching the wordmark's asterisk on the hero panel. */
.brand-icon svg .brand-icon-asterisk {
  fill: #f9982f !important;
}
@keyframes brand-icon-orbit {
  to { transform: rotate(360deg); }
}
@keyframes brand-icon-satellite {
  to { transform: rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-icon::before,
  .brand-icon::after { animation: none; }
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -1px; color: var(--ocean); line-height: 1; margin-bottom: 3px; }
.brand-name .a {
  /* Saffron accent — colour-rhymes with the asterisk in the
     icon above. Kept even though .brand-name is no longer rendered
     on the login card itself, in case it's reused elsewhere. */
  color: #f9982f;
  -webkit-text-fill-color: #f9982f;
}
.brand-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-m); margin-bottom: 18px; }
/* Brand rule under the wordmark — uses the NADI gradient. */
.brand-rule { width: 36px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #2a1a8c, #397de8, #2de4e7); margin: 0 auto 18px; }
.card-title { font-size: 21px; font-weight: 700; color: var(--text-h); letter-spacing: -.4px; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-m); line-height: 1.55; }

/* SSO button */
.btn-sso {
  display: flex; align-items: center; width: 100%;
  border-radius: var(--r-md); border: 1.5px solid var(--border);
  background: #fff; cursor: pointer; text-decoration: none;
  font-family: inherit; transition: all .20s ease;
  box-shadow: 0 1px 4px rgba(17,24,39,.06); overflow: hidden; margin-bottom: 12px;
}
.btn-sso:hover {
  border-color: var(--ocean);
  box-shadow: 0 6px 20px rgba(50,84,148,.14), 0 2px 6px rgba(50,84,148,.08);
  transform: translateY(-2px);
}
.btn-sso:active { transform: translateY(0); }
.btn-sso-accent {
  width: 4px; min-height: 56px; flex-shrink: 0;
  background: linear-gradient(180deg, #F25022 0%, #7FBA00 33%, #00A4EF 66%, #FFB900 100%);
}
.btn-sso-content { flex: 1; display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.ms-sq { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px; width: 20px; height: 20px; flex-shrink: 0; }
.ms-sq div { border-radius: 1.5px; }
.ms-r{background:#F25022} .ms-g{background:#7FBA00} .ms-b{background:#00A4EF} .ms-y{background:#FFB900}
.btn-sso-text { display: flex; flex-direction: column; flex: 1; }
.btn-sso-main { font-size: 13.5px; font-weight: 600; color: var(--text-h); }
.btn-sso-hint { font-size: 10.5px; color: var(--text-f); margin-top: 1px; }
.btn-sso-arrow {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--canvas); display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s; margin-right: 14px;
}
.btn-sso:hover .btn-sso-arrow { background: rgba(50,84,148,.10); transform: translateX(2px); }

/* Secure note */
.secure-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.secure-icon { color: #4ade80; flex-shrink: 0; }
.secure-text { font-size: 10.5px; color: var(--text-f); }
.secure-text strong { font-weight: 600; color: var(--text-m); }

/* Card foot */
.card-foot {
  border-top: 1px solid var(--border); padding: 14px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap; background: #fafbfd;
}
.card-foot-link { font-size: 11px; color: var(--text-f); text-decoration: none; font-weight: 500; transition: color .18s; padding: 2px 4px; }
.card-foot-link:hover { color: var(--ocean); }
.card-foot-sep { font-size: 11px; color: var(--border); padding: 0 1px; }

/* Bottom links */
.rp-foot {
  position: absolute; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.rp-foot-link {
  font-size: 10.5px; color: #b0bad0; text-decoration: none;
  font-weight: 500; display: flex; align-items: center; gap: 4px; transition: color .18s;
}
.rp-foot-link:hover { color: var(--ocean); }
.rp-foot-sep { width: 3px; height: 3px; border-radius: 50%; background: #d1d8e8; }

/* ── Tab switcher ─────────────────────────────────────────── */
.card-tabs {
  display: flex; background: var(--canvas); border: 1px solid var(--border);
  border-radius: var(--pill); padding: 3px; gap: 3px; margin-bottom: 22px;
}
.card-tab {
  flex: 1; padding: 8px 12px; border: none; background: none;
  border-radius: var(--pill); font-family: inherit; font-size: 12px;
  font-weight: 500; color: var(--text-m); cursor: pointer; transition: all .18s;
  white-space: nowrap;
}
.card-tab.active {
  background: #fff; color: var(--ocean); font-weight: 600;
  box-shadow: 0 1px 4px rgba(15,23,42,.10);
}
.tab-pane          { display: none; }
.tab-pane.active   { display: block; }

/* ── Direct login form ────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-m); margin-bottom: 6px;
}
/* Username + domain suffix */
.input-domain {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.input-domain:focus-within {
  border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(50,84,148,.08);
}
.input-domain input {
  flex: 1; padding: 10px 12px; border: none; outline: none;
  font-family: inherit; font-size: 13px; color: var(--text-h); background: #fff; min-width: 0;
}
.input-domain input::placeholder { color: var(--text-f); }
.domain-suffix {
  display: flex; align-items: center; padding: 0 11px;
  background: var(--canvas); border-left: 1.5px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text-m); white-space: nowrap; flex-shrink: 0;
}
/* Password with show/hide toggle */
.input-pw-wrap { position: relative; }
.form-input {
  width: 100%; padding: 10px 38px 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: inherit; font-size: 13px; color: var(--text-h);
  background: #fff; outline: none; transition: border-color .18s, box-shadow .18s;
}
.form-input:focus { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(50,84,148,.08); }
.form-input::placeholder { color: var(--text-f); }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: var(--text-f);
  padding: 2px; display: flex; align-items: center; transition: color .18s;
}
.pw-toggle:hover { color: var(--text-m); }
/* Remember + forgot row */
.form-meta {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.form-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-m); cursor: pointer; }
.form-check input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--ocean); cursor: pointer; }
.forgot-link { font-size: 12px; font-weight: 600; color: var(--ocean); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
/* Sign In button */
.btn-signin {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ocean) 0%, #4472cc 100%);
  color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .20s; box-shadow: 0 4px 12px rgba(50,84,148,.28); margin-bottom: 12px;
}
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(50,84,148,.38); }
.btn-signin:active { transform: translateY(0); }
/* OR divider */
.or-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0;
  font-size: 10.5px; color: var(--text-f); text-align: center;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Alert messages ───────────────────────────────────────── */
.alert-error {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
  font-size: 12px; color: #dc2626; font-weight: 500; line-height: 1.4;
}
.alert-info {
  background: rgba(50,84,148,.07); border: 1px solid rgba(50,84,148,.18);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
  font-size: 12px; color: var(--ocean); font-weight: 500; line-height: 1.4;
}

/* Responsive */
@media (max-width: 860px) {
  .lp { display: none; }
  .rp { padding: 0 20px; }
}
