/* Little Flower School — Auth pages (login / forgot password)
   Scoped under .lfs-auth-* to avoid colliding with other pages that share
   header.php / footer.php (register.php, newRegister.php, verifyAdmn.php). */

.lfs-auth-page {
  --lfs-navy-900: #060f22;
  --lfs-navy-800: #0a1830;
  --lfs-navy-700: #0f2143;
  --lfs-navy-600: #17305c;
  --lfs-gold-600: #a9760a;
  --lfs-gold-500: #cf9a1e;
  --lfs-gold-400: #e2b93b;
  --lfs-gold-300: #f0cf6c;
  --lfs-gold-100: #fbeec2;
  --lfs-ink: #1c2333;
  --lfs-muted: #6b7280;

  margin: 0;
  min-height: 100vh;
  background: #eef1f6;
  background-image: radial-gradient(circle, #d7dce6 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}

.lfs-auth-page *,
.lfs-auth-page *::before,
.lfs-auth-page *::after {
  box-sizing: border-box;
}

.lfs-auth-card {
  width: 100%;
  max-width: 940px;
  min-height: 560px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(6, 15, 34, 0.35), 0 10px 25px -10px rgba(6, 15, 34, 0.2);
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
}

/* ---------- Left brand panel ---------- */
.lfs-auth-brand {
  position: relative;
  background: linear-gradient(160deg, var(--lfs-navy-900) 0%, var(--lfs-navy-800) 55%, var(--lfs-navy-700) 100%);
  color: #fff;
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lfs-auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%),
    repeating-linear-gradient(45deg, rgba(226,185,59,0.03) 0 2px, transparent 2px 40px);
}

.lfs-auth-logo {
  position: relative;
  z-index: 0; /* establishes a stacking context so the ring's z-index:-1 stays local, not behind the whole panel */
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 0 0 3px var(--lfs-gold-400), 0 10px 30px rgba(0,0,0,0.35);
  margin-bottom: 22px;
}

.lfs-auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* pulsing wave ring behind the logo */
.lfs-auth-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--lfs-gold-400);
  z-index: -1;
  animation: lfsWaveRing 2.6s ease-out infinite;
}
.lfs-auth-logo-ring.lfs-delay {
  animation-delay: 1.3s;
}

/* ring grows from the logo's centre point; it's masked behind the opaque logo
   until scale reaches 1 (the logo's own edge) at 80% of the timeline, so opacity
   must stay near-zero until then and only fade out across the visible 15px
   beyond the border (80%-100%), otherwise it reads as vanishing at the border. */
@keyframes lfsWaveRing {
  0%   { transform: scale(0);    opacity: 0; }
  79%  { opacity: 0; }
  80%  { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

.lfs-auth-name {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 6px;
  position: relative;
}

.lfs-auth-motto {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lfs-gold-300);
  font-weight: 600;
  margin: 0 0 16px;
}

.lfs-auth-badge {
  display: inline-block;
  border: 1px solid rgba(226, 185, 59, 0.55);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #f4e6bd;
  background: rgba(226, 185, 59, 0.08);
  margin-bottom: 24px;
}

.lfs-auth-divider {
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lfs-gold-500), var(--lfs-gold-300));
  margin: 4px 0 26px;
}

.lfs-auth-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #d7deee;
}

.lfs-auth-contact div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lfs-auth-contact i {
  color: var(--lfs-gold-400);
  font-size: 14px;
}

.lfs-auth-contact a {
  color: #d7deee;
  text-decoration: none;
}
.lfs-auth-contact a:hover {
  color: var(--lfs-gold-300);
}

/* ---------- Right form panel ---------- */
.lfs-auth-form-panel {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lfs-auth-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lfs-gold-600);
  margin: 0 0 10px;
}

.lfs-auth-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--lfs-navy-900);
  margin: 0 0 8px;
}

.lfs-auth-subtitle {
  color: var(--lfs-muted);
  font-size: 14.5px;
  margin: 0 0 30px;
}

.lfs-auth-field {
  margin-bottom: 20px;
}

.lfs-auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lfs-auth-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lfs-ink);
}

.lfs-auth-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--lfs-gold-600);
  text-decoration: none;
}
.lfs-auth-link:hover {
  text-decoration: underline;
  color: var(--lfs-gold-500);
}

.lfs-auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e5ec;
  background: #f8f9fb;
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lfs-auth-input-group:focus-within {
  border-color: var(--lfs-gold-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(226, 185, 59, 0.22);
}

.lfs-auth-input-group i.lfs-i-lead {
  color: #9aa1b0;
  font-size: 15px;
  margin-right: 10px;
}

.lfs-auth-input-group input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 13px 0;
  font-size: 14.5px;
  color: var(--lfs-ink);
  font-family: inherit;
  min-width: 0;
}

.lfs-auth-input-group input::placeholder {
  color: #a8adb9;
}

.lfs-auth-eye-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #9aa1b0;
  font-size: 15px;
  padding: 6px;
  display: flex;
  align-items: center;
}
.lfs-auth-eye-toggle:hover {
  color: var(--lfs-gold-600);
}

.lfs-auth-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f6cdc9;
  border-radius: 8px;
  padding: 10px 12px;
  margin: -4px 0 18px;
}
.lfs-auth-status.lfs-show {
  display: flex;
}

.lfs-auth-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lfs-navy-900);
  background: linear-gradient(135deg, var(--lfs-gold-300), var(--lfs-gold-400) 55%, var(--lfs-gold-500));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px -8px rgba(207, 154, 30, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  margin-top: 6px;
}

.lfs-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px rgba(207, 154, 30, 0.75);
}
.lfs-auth-submit:active {
  transform: translateY(0);
}

.lfs-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--lfs-navy-700);
  text-decoration: none;
  font-weight: 600;
  margin-top: 22px;
  justify-content: center;
}
.lfs-auth-back:hover {
  color: var(--lfs-gold-600);
}

.lfs-auth-hr {
  border: none;
  border-top: 1px solid #edeff3;
  margin: 30px 0 20px;
}

.lfs-auth-help {
  text-align: center;
  font-size: 12.5px;
  color: var(--lfs-muted);
  line-height: 1.7;
}
.lfs-auth-help b {
  color: var(--lfs-ink);
}

.lfs-auth-hint {
  font-size: 12.5px;
  color: var(--lfs-muted);
  margin: -12px 0 20px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lfs-auth-card {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .lfs-auth-brand {
    padding: 32px 28px 26px;
  }
  .lfs-auth-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }
  .lfs-auth-name {
    font-size: 21px;
  }
  .lfs-auth-contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
    gap: 8px 18px;
  }
  .lfs-auth-form-panel {
    padding: 36px 28px 40px;
  }
  .lfs-auth-title {
    font-size: 27px;
  }
}

@media (max-width: 420px) {
  .lfs-auth-page {
    padding: 0;
  }
  .lfs-auth-card {
    border-radius: 0;
    min-height: 100vh;
  }
  .lfs-auth-form-panel {
    padding: 30px 20px 34px;
  }
}
