/* ═══════════════════════════════════════════════
   NEXGURU LOGIN — premium split card
   Main login page. Themed via html[data-theme].

   NOTE ON THE CASCADE
   html carries data-theme, so :root and [data-theme=...]
   match the SAME element with the same specificity —
   source order would decide the winner. Every themed
   block is therefore scoped to html[data-theme="..."]
   (0,2,0) and the fallback to :root:not([data-theme])
   so a theme always beats the default, whatever the
   order. body/panel paint through html[...] too, to
   outrank theme.css's `body { background:#f7f7f7 }`.
═══════════════════════════════════════════════ */

/* ── Fallback (no data-theme yet) = dark ──── */
:root:not([data-theme]) {
  --lg-accent:        #5b9dff;
  --lg-accent-2:      #2563eb;
  --lg-page-bg:       #060c1f;
  --lg-text:          #eaf1ff;
  --lg-text-strong:   #ffffff;
  --lg-muted:         rgba(219, 232, 255, 0.62);
  --lg-card-bg:       rgba(18, 28, 56, 0.72);
  --lg-card-border:   rgba(140, 180, 255, 0.16);
  --lg-input-bg:      rgba(255, 255, 255, 0.05);
  --lg-input-border:  rgba(160, 195, 255, 0.16);
  --lg-input-ph:      rgba(210, 226, 255, 0.34);
  --lg-input-focus-bg:rgba(255, 255, 255, 0.09);
  --lg-autofill-bg:   #16203f;   /* opaque: hides Chrome's white autofill */
  --lg-glow:          rgba(91, 157, 255, 0.22);
  --lg-google-bg:     rgba(255, 255, 255, 0.06);
  --lg-google-text:   #eaf1ff;
  --lg-shadow:        0 40px 90px rgba(0, 0, 0, 0.62);
  --lg-track-bg:      rgba(255, 255, 255, 0.09);
  --lg-track-border:  rgba(160, 195, 255, 0.20);
  --lg-knob-bg:       linear-gradient(135deg, #2b4a8f, #16295c);
  --lg-knob-color:    #9ec5ff;
  --lg-knob-shadow:   rgba(0, 0, 0, 0.55);
  --lg-radius:        24px;
  --lg-loader-veil:   rgba(4, 10, 28, 0.72);
  --lg-loader-text:   rgba(224, 236, 255, 0.86);
  --lg-loader-ring-3: rgba(150, 195, 255, 0.55);
}

/* ── DARK ─────────────────────────────────── */
html[data-theme="dark"],
html[data-theme="custom"] {
  --lg-accent:        #5b9dff;
  --lg-accent-2:      #2563eb;
  --lg-page-bg:       #060c1f;
  --lg-text:          #eaf1ff;
  --lg-text-strong:   #ffffff;
  --lg-muted:         rgba(219, 232, 255, 0.62);
  --lg-card-bg:       rgba(18, 28, 56, 0.72);
  --lg-card-border:   rgba(140, 180, 255, 0.16);
  --lg-input-bg:      rgba(255, 255, 255, 0.05);
  --lg-input-border:  rgba(160, 195, 255, 0.16);
  --lg-input-ph:      rgba(210, 226, 255, 0.34);
  --lg-input-focus-bg:rgba(255, 255, 255, 0.09);
  --lg-autofill-bg:   #16203f;   /* opaque: hides Chrome's white autofill */
  --lg-glow:          rgba(91, 157, 255, 0.22);
  --lg-google-bg:     rgba(255, 255, 255, 0.06);
  --lg-google-text:   #eaf1ff;
  --lg-shadow:        0 40px 90px rgba(0, 0, 0, 0.62);
  --lg-track-bg:      rgba(255, 255, 255, 0.09);
  --lg-track-border:  rgba(160, 195, 255, 0.20);
  --lg-knob-bg:       linear-gradient(135deg, #2b4a8f, #16295c);
  --lg-knob-color:    #9ec5ff;
  --lg-knob-shadow:   rgba(0, 0, 0, 0.55);
  --lg-radius:        24px;
  --lg-loader-veil:   rgba(4, 10, 28, 0.72);
  --lg-loader-text:   rgba(224, 236, 255, 0.86);
  --lg-loader-ring-3: rgba(150, 195, 255, 0.55);
}

/* ── LIGHT ────────────────────────────────── */
html[data-theme="light"] {
  --lg-accent:        #2f6df0;
  --lg-accent-2:      #1d4ed8;
  --lg-page-bg:       #eef3fc;
  --lg-text:          #16224a;
  --lg-text-strong:   #0a1233;
  --lg-muted:         rgba(22, 34, 74, 0.60);
  --lg-card-bg:       rgba(255, 255, 255, 0.82);
  --lg-card-border:   rgba(255, 255, 255, 0.90);
  --lg-input-bg:      rgba(255, 255, 255, 0.92);
  --lg-input-border:  rgba(22, 34, 74, 0.12);
  --lg-input-ph:      rgba(22, 34, 74, 0.38);
  --lg-input-focus-bg:#ffffff;
  --lg-autofill-bg:   #ffffff;   /* opaque: hides Chrome's yellow autofill */
  --lg-glow:          rgba(47, 109, 240, 0.16);
  --lg-google-bg:     #ffffff;
  --lg-google-text:   #0a1233;
  --lg-shadow:        0 34px 80px rgba(23, 43, 99, 0.18);
  --lg-track-bg:      rgba(22, 34, 74, 0.08);
  --lg-track-border:  rgba(22, 34, 74, 0.14);
  --lg-knob-bg:       linear-gradient(135deg, #ffffff, #eef3fc);
  --lg-knob-color:    #f59e0b;
  --lg-knob-shadow:   rgba(23, 43, 99, 0.28);
  --lg-radius:        24px;
  --lg-loader-veil:   rgba(228, 236, 250, 0.78);
  --lg-loader-text:   rgba(16, 32, 78, 0.80);
  --lg-loader-ring-3: rgba(47, 109, 240, 0.40);
}

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

/* ── Page canvas ──────────────────────────── */
/* html[...] beats theme.css's plain `body` selector */
html[data-theme] body,
html:not([data-theme]) body,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--lg-text);
  background: var(--lg-page-bg) !important;
  background-image: none;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.4s ease;
}

/* ── Animated aurora field ────────────────── */
/* Three slow drifting colour clouds. Sits under the card. */
.lg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(70px);
}

html[data-theme="dark"] .lg-aurora,
html[data-theme="custom"] .lg-aurora {
  display: none;
}

.lg-aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.lg-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  top: -14%; left: -8%;
  background: radial-gradient(circle, #2f6df0 0%, transparent 68%);
  animation: lgDrift1 19s ease-in-out infinite;
}
.lg-aurora span:nth-child(2) {
  width: 40vw; height: 40vw; min-width: 360px; min-height: 360px;
  bottom: -18%; right: -8%;
  background: radial-gradient(circle, #7c3aed 0%, transparent 68%);
  animation: lgDrift2 23s ease-in-out infinite;
}
.lg-aurora span:nth-child(3) {
  width: 34vw; height: 34vw; min-width: 300px; min-height: 300px;
  top: 34%; left: 52%;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 68%);
  animation: lgDrift3 27s ease-in-out infinite;
}

/* Light theme drops the coloured clouds — they read as dirty blue smudges
   on a near-white page. A single neutral wash keeps some depth instead. */
html[data-theme="light"] .lg-aurora { filter: blur(90px); }
html[data-theme="light"] .lg-aurora span:nth-child(1),
html[data-theme="light"] .lg-aurora span:nth-child(2) { display: none; }
html[data-theme="light"] .lg-aurora span:nth-child(3) {
  top: -10%; left: 50%;
  width: 70vw; height: 50vw;
  opacity: 0.5;
  mix-blend-mode: normal;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, transparent 70%);
  animation-duration: 34s;
}

@keyframes lgDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(9vw, 7vh) scale(1.16); }
}
@keyframes lgDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1.08); }
  50%      { transform: translate(-8vw, -6vh) scale(1); }
}
@keyframes lgDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6vw, 5vh) scale(1.2); }
}

/* ── Drifting particles ───────────────────── */
.lg-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lg-bubbles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255,255,255,0.16), transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  animation: lgFloat linear infinite;
  will-change: transform;
}

html[data-theme="light"] .lg-bubbles span {
  background: radial-gradient(circle at 34% 34%, rgba(47,109,240,0.045), transparent 72%);
  border-color: rgba(47, 109, 240, 0.085);
}

.lg-bubbles span:nth-child(1) { width: 170px; height: 170px; left: 8%;  bottom: -190px; animation-duration: 27s; animation-delay: 0s; }
.lg-bubbles span:nth-child(2) { width: 110px; height: 110px; left: 24%; bottom: -150px; animation-duration: 33s; animation-delay: 5s; }
.lg-bubbles span:nth-child(3) { width: 220px; height: 220px; left: 68%; bottom: -250px; animation-duration: 30s; animation-delay: 2s; }
.lg-bubbles span:nth-child(4) { width:  80px; height:  80px; left: 84%; bottom: -130px; animation-duration: 25s; animation-delay: 8s; }
.lg-bubbles span:nth-child(5) { width: 140px; height: 140px; left: 46%; bottom: -180px; animation-duration: 36s; animation-delay: 11s; }

@keyframes lgFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-122vh) translateX(44px) scale(1.14); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-bubbles span,
  .lg-aurora span { animation: none; }
}

/* ── Theme toggle (top-right) ─────────────── */
.login-theme-toggle {
  position: fixed;
  top: 24px;
  right: 26px;
  z-index: 50;
  width: 68px;
  height: 34px;
  border-radius: 17px;
  background: var(--lg-track-bg);
  border: 1px solid var(--lg-track-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  user-select: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s, border-color 0.4s;
}

.lt-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.lt-icons i { font-size: 13px; transition: opacity 0.35s, color 0.35s; }
.lt-moon { color: #9ec5ff; }
.lt-sun  { color: #fbbf24; }

html[data-theme="dark"]  .lt-sun,
html[data-theme="custom"] .lt-sun { opacity: 0.28; }
html[data-theme="light"] .lt-moon { opacity: 0.28; }

.lt-knob {
  position: absolute;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--lg-knob-bg);
  box-shadow: 0 3px 12px var(--lg-knob-shadow);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--lg-knob-color);
  transition: transform 0.45s cubic-bezier(.22,.68,0,1.2), background 0.42s, color 0.42s;
  z-index: 1;
}

html[data-theme="light"] .lt-knob { transform: translateX(34px); }

.login-theme-toggle:focus-visible {
  outline: 2px solid var(--lg-accent);
  outline-offset: 3px;
}

/* ── Card shell ───────────────────────────── */
.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  width: 940px;
  min-width: 0;
  max-width: calc(100% - 32px);
  min-height: 580px;
  height: auto;
  padding: 0;
  background: var(--lg-card-bg);
  backdrop-filter: blur(34px) saturate(1.8);
  -webkit-backdrop-filter: blur(34px) saturate(1.8);
  border: 1px solid var(--lg-card-border);
  box-shadow: var(--lg-shadow);
  border-radius: var(--lg-radius);
  overflow: hidden;
  margin: 24px auto;
  animation: lgCardIn 0.75s cubic-bezier(.22,.68,0,1.1) both;
  transition: background 0.5s, border-color 0.4s, box-shadow 0.5s;
}

@keyframes lgCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .main { animation: none; }
}

/* hairline sheen along the card top */
.main::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  z-index: 5;
  pointer-events: none;
}

/* right side: the form column */
.containerr {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 0;
  float: none;
  margin-right: 0;
  width: 54%;
  height: auto;
  padding: 48px 54px;
  background: transparent;
  transition: none;
}

.containerr > div {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

#js-user-login-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ── Logo ─────────────────────────────────── */
.img-res {
  position: relative;
  top: 0; left: 0;
  transform: none;
  text-align: center;
  margin-bottom: 10px;
}

.first-logos {
  position: relative;
  top: 0;
  max-width: 180px;
  max-height: 74px;
  margin: auto;
  padding: 0;
  display: block;
}

/* ── Logo legibility in dark mode ─────────────
   logo.png is a transparent PNG whose artwork is ~79% dark (the navy "Nex"
   roundel), so it vanishes on a dark page. Recolouring would break the
   brand, so it gets a soft light plate to sit on instead — the artwork
   keeps its real colours and reads at full contrast. */
html[data-theme="dark"] .img-res,
html[data-theme="custom"] .img-res {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* .img-res's parent carries no class, so centring comes from the column */
.containerr > div { text-align: center; }
.containerr > div > *:not(.img-res) { text-align: left; }
.containerr .tiles,
.containerr .id { text-align: center; }

/* ── Titles ───────────────────────────────── */
.title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--lg-text-strong);
  letter-spacing: -0.3px;
}

.tiles { text-align: center; }

.form_title {
  margin: 2px 0 22px;
  font-size: 22px !important;
  font-family: 'Poppins', 'Montserrat', sans-serif !important;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  text-align: center;
  color: var(--lg-text-strong) !important;
}

.description { font-size: 14px; letter-spacing: 0.2px; line-height: 1.7; }

.id {
  font-size: 13.5px;
  color: var(--lg-muted);
  margin-top: 2px;
  margin-bottom: 18px;
  text-align: center;
}

.id .font-weight-bold { color: var(--lg-accent); }

/* ── Inputs ───────────────────────────────── */
.form__input {
  width: 100%;
  max-width: 100%;
  height: 48px;
  margin: 0 0 14px;
  padding: 0 16px;
  font-size: 13.5px;
  letter-spacing: 0.15px;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: var(--lg-text);
  background-color: var(--lg-input-bg);
  border: 1px solid var(--lg-input-border);
  border-radius: 13px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  display: block;
}

.form__input::placeholder { color: var(--lg-input-ph); }

.form__input:focus {
  border-color: var(--lg-accent);
  background-color: var(--lg-input-focus-bg);
  box-shadow: 0 0 0 4px var(--lg-glow);
}

/* Chrome paints autofilled fields white/yellow via its own UA layer. The
   inset box-shadow trick is the only reliable repaint, and it must carry
   !important or the `box-shadow: none` above cancels it. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--lg-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--lg-autofill-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--lg-autofill-bg) inset !important;
  border: 1px solid var(--lg-input-border) !important;
  caret-color: var(--lg-text);
  /* keeps Chrome from re-painting its own colour after the swap */
  transition: background-color 9999s ease-in-out 0s;
}

.form__input:-webkit-autofill:focus {
  border-color: var(--lg-accent) !important;
}

/* ── Sub ID / OR / Namespace row ──────────── */
/* #login_head is a Bootstrap .col-md-12 wrapping a .row; both bring their
   own padding/negative margins, which made the two fields unequal. Reset
   them so flex alone decides the widths. */
#login_head {
  padding: 0 !important;
  margin: 0;
  width: 100%;
  float: none;
}

/* align-items:center would centre OR against the 62px column (field +
   its 14px margin) and sit low; the fields' own margin is moved onto the
   row instead, so every child is exactly 48px and centring is true. */
#login_head .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 14px !important;
  width: 100%;
}

/* the row owns the spacing now */
#login_head .row .form__input { margin-bottom: 0; }

/* equal halves: same basis, and min-width:0 so long text cannot grow one */
.sub_id_box,
.namespace_box {
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  max-width: 50%;
  padding: 0 !important;
  margin: 0;
}

.sub_id_box .form__input,
.namespace_box .form__input { max-width: 100%; margin-bottom: 14px; }

.or_clm {
  flex: 0 0 auto;
  padding: 0 !important;
  margin: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* line-height:48px would re-introduce the old offset — let flex centre it */
.font_bold {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--lg-muted);
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ── Password eye ─────────────────────────────
   The input and the icon share a dedicated .input-wrap, so the icon is
   positioned against the FIELD itself. Siblings such as #ps_validate or a
   validation message can no longer push it out of the box. */
.input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* the field's own bottom margin lives on the wrapper instead, so the
   wrapper's height is exactly the field's height */
.input-wrap .form__input { margin-bottom: 0; }
.input-wrap { margin-bottom: 14px; }

.go_to_login {
  position: relative;
  display: block;
  width: 100%;
}

.field-icon {
  position: absolute;
  top: 24px;                     /* 48px field / 2 — inside the box */
  right: 14px;
  transform: translateY(-50%);   /* dead-centre of the field */
  margin: 0 !important;
  padding: 0;
  float: none;
  z-index: 3;
  color: var(--lg-muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

/* .fa-fw would add its own 1.28em box and shift the glyph off-centre */
.field-icon.fa-fw { width: auto; }

.field-icon:hover { color: var(--lg-accent); }

/* With .input-wrap present the wrapper is exactly the field, so 50% is the
   same 24px — stated explicitly so both markup paths agree. */
.input-wrap .field-icon {
  top: 50%;
}

.errorMessage {
  margin: -8px 0 10px;
  color: #ff8080;
  font-size: 12px;
  text-align: left;
  line-height: 1.5;
}

html[data-theme="light"] .errorMessage { color: #d92d2d; }

.captchaa {
  display: grid;
  place-content: center;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* ── Buttons ──────────────────────────────── */
.main .button {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 48px !important;
  border-radius: 13px;
  margin: 6px 0 0 !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background: linear-gradient(135deg, var(--lg-accent), var(--lg-accent-2)) !important;
  color: #fff;
  border: none;
  outline: none;
  display: block;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(47, 109, 240, 0.34);
  transition: transform 0.2s, box-shadow 0.25s, filter 0.2s;
}

/* sheen sweep on hover */
.main .button::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.main .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(47, 109, 240, 0.46);
  filter: brightness(1.06);
}

.main .button:hover::after { left: 120%; }

.main .button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(47, 109, 240, 0.32);
}

.button_a {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  text-decoration: none;
}

.main .signupwithgoogle {
  width: 100%;
  max-width: 100%;
  height: 48px;
  border-radius: 13px;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background-color: var(--lg-google-bg);
  color: var(--lg-google-text);
  border: 1px solid var(--lg-input-border);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: normal;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s, background 0.3s;
}

.main .signupwithgoogle:hover {
  border-color: var(--lg-accent);
  box-shadow: 0 10px 24px var(--lg-glow);
  transform: translateY(-1px);
  cursor: pointer;
}

/* Google mark. Inline SVG in brand colours — renders crisply on light and
   dark alike, so the white chip the old JPG needed is gone. */
.main .signupwithgoogle .g-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* legacy <img> mark, still used if a view was not updated */
.main .signupwithgoogle img {
  width: 20px !important;
  height: 20px !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 4px !important;
  padding: 2px;
  box-sizing: border-box;
}

/* ── Button + link icons ──────────────────── */
.main .button .btn-ico {
  margin-right: 9px;
  font-size: 13px;
  opacity: 0.92;
}

/* the label and icon ride together, centred */
/* the sheen ::after would otherwise wash over the label */
.main .button span,
.main .button .btn-ico {
  position: relative;
  z-index: 1;
  vertical-align: middle;
}

#forgot_password .link-ico,
.forgot_password .link-ico {
  margin-right: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.button_a:hover { color: var(--lg-accent); text-decoration: none; }

/* ── (OR) divider ─────────────────────────── */
.striped {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100% !important;
  margin: 18px 0 !important;
}

.striped-line {
  flex: auto;
  border: none;
  outline: none;
  height: 1px !important;
  background: var(--lg-input-border) !important;
}

.striped-text {
  font-size: 12px !important;
  font-weight: 500;
  color: var(--lg-muted) !important;
  margin: 0 12px !important;
}

/* ── Forgot password ──────────────────────── */
#forgot_password,
.forgot_password {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  padding: 0;
  width: 100%;
  float: none;
}

#forgot_password a,
.forgot_password a {
  color: var(--lg-muted) !important;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

#forgot_password a:hover,
.forgot_password a:hover { color: var(--lg-accent) !important; }

/* ── Left welcome panel ───────────────────── */
/* Deep navy in both themes — the brand anchor of the page. */
.switch,
html[data-theme] .switch {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  position: relative;
  top: 0; left: 0;
  height: auto;
  width: 46%;
  padding: 54px 46px 96px;   /* bottom room for the footer */
  z-index: 2;
  background:
    radial-gradient(ellipse 90% 60% at 18% 8%, rgba(91,157,255,0.30) 0%, transparent 62%),
    linear-gradient(155deg, #12295f 0%, #0a1740 52%, #060d26 100%);
  overflow: hidden;
  box-shadow: none;
  color: #ffffff;
  transition: background 0.5s;
}

.switch__circle {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255,255,255,0.09), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  bottom: -46%;
  left: -38%;
  transition: none;
}

.switch__circle--t { top: -18%; left: 62%; width: 250px; height: 250px; }

.switch__container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  position: relative;
  width: 100%;
  padding: 0;
  z-index: 3;
}

.switch__title,
.titl {
  font-size: 25px !important;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 14px;
  width: 100%;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.switch__description {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(226, 238, 255, 0.72);
  margin: 0;
}

/* ── Footer (inside the panel) ────────────── */
.footer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: absolute;
  bottom: 32px;
  left: 46px;
  right: auto;
  top: auto;
  height: auto;
  width: auto;
  max-width: calc(46% - 92px);
  z-index: 209;
}

.class {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(226, 238, 255, 0.70);
  margin: 0;
  line-height: 1.6;
}

.class a { color: #ff8a56; text-decoration: none; }
.class a:hover { text-decoration: underline; }

/* ── Reset-password / forgot-password pages ───
   These reuse the login card but wrap fields in Bootstrap columns, which
   add padding and a float. Neutralise that so the fields, the eye icon and
   the button line up exactly as they do on the login form. */
.login_inside { width: 100%; }

.login_inside .col-sm-12,
.login_inside .col-xs-12 {
  padding: 0 !important;
  float: none;
  width: 100%;
}

/* .right is a legacy float helper on these wrappers */
.login_inside .right { float: none; }

.login_inside .input-wrap { margin-bottom: 14px; }

/* the hint under the New Password field */
.login_inside .input-wrap + span {
  display: block;
  font-size: 11.5px;
  color: var(--lg-muted);
  margin: -6px 0 12px;
  line-height: 1.5;
}

/* Back-to-login / helper links sit centred under the button */
#forgot_password { float: none; }

/* theme.css forces `.form-control { background:#fff!important; color:#444!important }`,
   which turned the change-password fields white with near-invisible text in
   dark mode. Those fields carry .form__input too, so re-assert the card's own
   look at matching weight. */
.containerr .form__input.form-control,
.main .form__input.form-control {
  background-color: var(--lg-input-bg) !important;
  color: var(--lg-text) !important;
  border: 1px solid var(--lg-input-border);
  border-radius: 13px;
  height: 48px;
  padding: 0 16px;
  font-size: 13.5px;
}

.containerr .form__input.form-control:focus,
.main .form__input.form-control:focus {
  background-color: var(--lg-input-focus-bg) !important;
  border-color: var(--lg-accent);
  box-shadow: 0 0 0 4px var(--lg-glow);
}

.containerr .form__input.form-control::placeholder,
.main .form__input.form-control::placeholder {
  color: var(--lg-input-ph) !important;
}

/* Match the other views' staggered entry for the nested change-password
   markup, whose controls sit inside .login_inside rather than directly
   under .containerr. */
.containerr .login_inside > h2,
.containerr .login_inside > div,
.containerr .login_inside > button {
  animation: lgReveal 0.55s cubic-bezier(.22,.68,0,1) both;
}

.containerr .login_inside > h2 { animation-delay: 0.22s; }
.containerr .login_inside > div { animation-delay: 0.34s; }
.containerr .login_inside > button { animation-delay: 0.46s; }

/* ── Change-password (loginresetpassword) ─────
   That view wraps its fields in a bare Bootstrap .row plus .col-sm-12
   columns. .row carries -15px side margins and the columns carry 15px
   padding, so left unchecked the form sits 30px wider than the card and
   overflows it. Neutralise both inside the login card only. */
#login_change_password .row,
.login_inside .row {
  display: block;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.login_inside {
  width: 100%;
  padding: 0;
  float: none;
}

#login_change_password [class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  float: none;
}

/* the hint under the new-password field — it is the column's own span, so
   match only that and leave the button label and the eye icon alone */
#login_change_password [class*="col-"] > span:not(.field-icon):not(.errorMessage) {
  display: block;
  font-size: 11.5px;
  color: var(--lg-muted);
  margin: -6px 0 12px;
  line-height: 1.5;
}

/* ── Loader ───────────────────────────────────
   Full-page overlay. It must be a direct child of <body>: .main carries a
   backdrop-filter and a transform animation, and either of those makes it the
   containing block for position:fixed descendants, which would clip the
   overlay to the card.
   ───────────────────────────────────────────── */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: block;
  padding: 0;
  margin: 0;
  background: var(--lg-loader-veil);
  backdrop-filter: blur(9px) saturate(1.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  animation: lgVeilIn 0.32s ease-out both;
}

.loader-overlay .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  width: auto;
  height: auto;
}

.lg-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: lgLoaderIn 0.42s cubic-bezier(.22,.68,0,1.2) both;
}

/* ── Orbiting rings ───────────────────────── */
.lg-loader__rings {
  position: relative;
  width: 96px;
  height: 96px;
}

.lg-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: lgSpin 1.15s linear infinite;
}

.lg-loader__ring--1 {
  border-top-color: var(--lg-accent);
  border-right-color: var(--lg-accent);
  opacity: 0.95;
}

.lg-loader__ring--2 {
  inset: 13px;
  border-bottom-color: var(--lg-accent-2);
  border-left-color: var(--lg-accent-2);
  animation-duration: 0.92s;
  animation-direction: reverse;
  opacity: 0.85;
}

.lg-loader__ring--3 {
  inset: 26px;
  border-top-color: var(--lg-loader-ring-3);
  border-left-color: var(--lg-loader-ring-3);
  animation-duration: 1.5s;
  opacity: 0.7;
}

/* Soft pulsing heart in the middle */
.lg-loader__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lg-accent), var(--lg-accent-2));
  box-shadow: 0 0 18px 4px var(--lg-glow);
  animation: lgCorePulse 1.3s ease-in-out infinite;
}

/* ── Caption ──────────────────────────────── */
.lg-loader__text {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--lg-loader-text);
}

.lg-loader__dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  padding-bottom: 2px;
}

.lg-loader__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: lgDot 1.15s ease-in-out infinite;
}

.lg-loader__dots i:nth-child(2) { animation-delay: 0.16s; }
.lg-loader__dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes lgSpin { to { transform: rotate(360deg); } }

@keyframes lgCorePulse {
  0%, 100% { transform: scale(0.82); opacity: 0.85; }
  50%      { transform: scale(1.12); opacity: 1; }
}

@keyframes lgDot {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  40%      { opacity: 1;    transform: translateY(-3px); }
}

@keyframes lgVeilIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lgLoaderIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}


@media (prefers-reduced-motion: reduce) {
  .loader-overlay,
  .lg-loader { animation: none; }
  .lg-loader__ring { animation-duration: 2.4s; }
  .lg-loader__core,
  .lg-loader__dots i { animation: none; opacity: 1; }
}

/* ── Misc / legacy resets ─────────────────── */
.power a { color: orangered; text-decoration: none; }
.bottom { background: rgb(33, 33, 33); }
.b-container { left: auto; z-index: 0; }
.form__span { margin-top: 30px; margin-bottom: 12px; }
.form__link {
  color: var(--lg-text-strong);
  font-size: 15px;
  margin-top: 25px;
  border-bottom: 1px solid var(--lg-input-border);
  line-height: 2;
}
.form__icon { object-fit: contain; width: 30px; margin: 0 5px; opacity: 0.5; transition: 0.15s; }
.form__icon:hover { opacity: 1; cursor: pointer; }
.bot-img { top: auto !important; }
.is-hidden { visibility: hidden; opacity: 0; position: absolute; }

.go_to_otp .text-center {
  margin-bottom: 10px;
  color: var(--lg-muted);
  font-size: 13px;
}

.alert { border-radius: 12px; font-size: 13px; margin-bottom: 14px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .main {
    flex-direction: column;
    width: 440px;
    min-height: 0;
    margin: 78px auto 28px;   /* clears the fixed toggle */
  }
  .switch,
  html[data-theme] .switch {
    width: 100%;
    padding: 34px 34px 30px;
    align-items: center;
    text-align: center;
  }
  .switch__container { align-items: center; text-align: center; }
  .switch__title,
  .titl { font-size: 22px !important; margin-bottom: 8px; }
  .switch__description { font-size: 13px; }
  .switch__circle { width: 230px; height: 230px; bottom: -60%; }
  .switch__circle--t { width: 170px; height: 170px; top: -42%; }
  .containerr { width: 100%; padding: 34px 34px 38px; }

  /* footer leaves the panel and sits under the card */
  .footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 20px;
  }
  .footer .class {
    width: 100%;
    margin: 0 auto !important;
    text-align: center;
    color: var(--lg-muted);
  }
}

@media (max-width: 380px) {
  .switch__title,
  .titl {
    font-size: 20px !important;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .lg-loader { gap: 18px; }
  .lg-loader__rings { width: 78px; height: 78px; }
  .lg-loader__ring--2 { inset: 11px; }
  .lg-loader__ring--3 { inset: 22px; }
  .lg-loader__text { font-size: 12.5px; }
  body { align-items: flex-start; padding: 0; }
  .login-theme-toggle { top: 14px; right: 14px; }
  .main { width: 100%; max-width: calc(100% - 24px); margin: 66px auto 18px; }
  .switch,
  html[data-theme] .switch { padding: 28px 22px 26px; }
  .containerr { padding: 30px 22px 32px; }
  .first-logos { max-width: 155px; max-height: 64px; }
  .g-recaptcha { transform: scale(0.86); transform-origin: center; }
}

@media (max-width: 400px) {
  #login_head .row { flex-wrap: wrap; gap: 0; }
  .sub_id_box,
  .namespace_box {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
  .sub_id_box .form__input,
  .namespace_box .form__input { margin-bottom: 0; }
  .or_clm {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
  }
  .font_bold { line-height: 1; }
  /* the row owns the gap again now that the fields are stacked */
  #login_head .row > .sub_id_box { margin-bottom: 0; }
}

/* ── Login micro-interactions ─────────────── */
@keyframes lgReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lgPanelOrbit {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-12px, 10px, 0) scale(1.04); }
}

@keyframes lgEyePop {
  0%   { transform: translateY(-50%) scale(0.72); }
  65%  { transform: translateY(-50%) scale(1.16); }
  100% { transform: translateY(-50%) scale(1); }
}

@keyframes lgErrorIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.containerr .img-res,
.containerr .form_title,
.containerr #login_head,
.containerr .go_to_login,
.containerr .go_to_otp,
.containerr .captchaa,
.containerr .form__button,
.containerr .striped,
.containerr .button_a,
.containerr #forgot_password {
  animation: lgReveal 0.55s cubic-bezier(.22,.68,0,1) both;
}

.containerr .img-res { animation-delay: 0.16s; }
.containerr .form_title { animation-delay: 0.22s; }
.containerr #login_head { animation-delay: 0.28s; }
.containerr .go_to_login,
.containerr .go_to_otp { animation-delay: 0.34s; }
.containerr .captchaa { animation-delay: 0.40s; }
.containerr .form__button { animation-delay: 0.46s; }
.containerr .striped { animation-delay: 0.52s; }
.containerr .button_a { animation-delay: 0.58s; }
.containerr #forgot_password { animation-delay: 0.64s; }

.switch__container,
.footer {
  animation: lgReveal 0.7s 0.32s cubic-bezier(.22,.68,0,1) both;
}

.switch__circle { animation: lgPanelOrbit 11s ease-in-out infinite; }
.switch__circle--t { animation-delay: -5.5s; animation-direction: reverse; }

.login-theme-toggle {
  transition: transform 0.22s ease, background 0.4s, border-color 0.4s,
    box-shadow 0.25s;
}

.login-theme-toggle:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 8px 22px var(--lg-glow);
}

.field-icon.fa-eye-slash { animation: lgEyePop 0.28s ease-out; }
.errorMessage { animation: lgErrorIn 0.28s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .containerr .img-res,
  .containerr .form_title,
  .containerr #login_head,
  .containerr .go_to_login,
  .containerr .go_to_otp,
  .containerr .captchaa,
  .containerr .form__button,
  .containerr .striped,
  .containerr .button_a,
  .containerr #forgot_password,
  .containerr .login_inside > h2,
  .containerr .login_inside > div,
  .containerr .login_inside > button,
  .switch__container,
  .switch__circle,
  .footer,
  .field-icon.fa-eye-slash,
  .errorMessage {
    animation: none;
  }
}
