/* ==========================================================================
   WONDERS KIDS — LOGIN.CSS
   Page-specific layout for the admin login screen only.
   Colors/type/spacing all come from assets/css/common.css tokens —
   nothing is hard-coded here.
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 42%) 1fr;
}

/* ==========================================================================
   LEFT — BRAND ASIDE
   ========================================================================== */
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-7) var(--space-7) var(--space-6);
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(91, 95, 239, .35), transparent 60%),
    linear-gradient(160deg, var(--wk-navy-900) 0%, var(--wk-navy-800) 55%, var(--wk-navy-700) 100%);
  color: var(--color-text-inverse);
}

/* ambient glow blob behind the headline — the one deliberate motion moment */
.auth-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(79, 195, 195, .35), transparent 70%);
  filter: blur(10px);
  animation: pulse-glow 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .9;  transform: scale(1.08); }
}

/* dashed decorative rings, echoing the site's hero background motif */
.auth-ring {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, .18);
  border-radius: 50%;
  pointer-events: none;
}
.auth-ring--1 { width: 320px; height: 320px; top: -90px; right: -110px; }
.auth-ring--2 { width: 160px; height: 160px; bottom: 14%; right: 8%; border-color: rgba(255,255,255,.12); }

/* floating doodles */
.doodle {
  position: absolute;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
/* All doodles live in the right-hand margin of the aside, clear of the
   text column (which is capped at ~420px), so they never fight the copy. */
.doodle--cloud    { top: 3%;    right: 9%;  width: 62px; opacity: .85; animation: float-x 9s ease-in-out infinite; }
.doodle--balloon  { top: 15%;   right: 15%; width: 50px; animation: float-y 6.5s ease-in-out infinite; }
.doodle--plane    { top: 52%;   right: 7%;  width: 42px; animation: float-y 5.5s ease-in-out infinite; animation-delay: .4s; }
.doodle--sun      { bottom: 17%; right: 11%; width: 44px; animation: float-y 7.5s ease-in-out infinite; animation-delay: 1s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(12px); }
}

.auth-aside-top {
  position: relative;
  z-index: 1;
}

.auth-logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.auth-logo-chip img { height: 34px; width: auto; border-radius: 8px; background: #fff; padding: 3px; }

.auth-logo-chip span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--color-text-inverse);
}

.auth-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wk-teal-400);
  margin: var(--space-7) 0 var(--space-3);
}

.auth-headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.18;
  color: var(--color-text-inverse);
  max-width: 420px;
  margin-bottom: var(--space-4);
}

.auth-subtext {
  position: relative;
  z-index: 1;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  max-width: 380px;
}

/* colored keywords in the tagline — mirrors the site's multicolor wordmark
   and speaks directly to what this panel manages */
.hl-teal   { color: var(--wk-teal-400);   font-weight: 700; }
.hl-coral  { color: var(--wk-coral-500);  font-weight: 700; }
.hl-yellow { color: var(--wk-yellow-400); font-weight: 700; }

.auth-feature-list {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--space-6) 0 0;
  padding: 0;
}

.auth-feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.auth-feature-list svg { width: 15px; height: 15px; flex-shrink: 0; }

.auth-aside-footer {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}

/* ==========================================================================
   RIGHT — FORM PANEL
   ========================================================================== */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.auth-mobile-brand { display: none; }

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-7) var(--space-6);
}

.auth-card-head { margin-bottom: var(--space-6); }

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.auth-back-link:hover { color: var(--color-primary); }
.auth-back-link svg { width: 14px; height: 14px; }

.auth-card-head h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.auth-card-head p {
  font-size: 14.5px;
  color: var(--color-text-body);
  margin-bottom: 0;
}

/* --- input with leading icon + trailing action -------------------------- */
.input-wrap { position: relative; }

.input-wrap .form-control {
  padding-left: 44px;
}

.input-wrap .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-wrap.has-action .form-control { padding-right: 44px; }

.input-action {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}
.input-action:hover { color: var(--color-primary); background: var(--wk-gray-100); }
.input-action svg { width: 18px; height: 18px; }

/* --- remember / forgot row ---------------------------------------------- */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -6px 0 var(--space-6);
  font-size: 13.5px;
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--color-text-body);
  font-weight: 500;
  user-select: none;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out);
}

.check-box svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .12s var(--ease-out), transform .12s var(--ease-out);
}

.check input:checked + .check-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }

.check input:focus-visible + .check-box {
  outline: 2px solid var(--wk-indigo-400);
  outline-offset: 2px;
}

.forgot-link { font-weight: 600; }

.auth-card-foot {
  text-align: center;
  margin-top: var(--space-6);
  font-size: 13.5px;
  color: var(--color-text-body);
}
.auth-card-foot a { font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--space-5) 0 0;
  }
  .auth-mobile-brand img { height: 40px; width: auto; }
  .auth-mobile-brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--color-text-heading);
  }

  .auth-main {
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-5);
    min-height: 100vh;
  }
}

@media (max-width: 420px) {
  .auth-card { padding: var(--space-6) var(--space-4); box-shadow: none; }
  .auth-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}