/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register / Forgot Password
   Glassmorphic sky-blue theme · Genius ITens
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Layout ─────────────────────────────────────────────── */
.auth {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 60px;
  position: relative;
}

.auth__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1040px;
  min-height: 620px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(14, 165, 233, .10),
    0 4px 24px rgba(0, 0, 0, .04);
  background: #fff;
}

/* ── Left Decorative Panel ───────────────────────────────────── */
.auth__panel {
  background: linear-gradient(155deg, var(--sky-600), var(--accent) 90%);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
/* Register & Forgot panels share same gradient as Login */

.auth__panel-content { position: relative; z-index: 2; }

.auth__panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.auth__panel-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.auth__panel-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 340px;
}
.auth__panel-features { display: flex; flex-direction: column; gap: 12px; }
.auth__panel-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.88);
  font-weight: 500;
}
.auth__panel-feature i { color: #5eead4; font-size: .8rem; }

/* Floating decorative icons — behind text, corners only */
.auth__float {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.18);
  font-size: 1rem;
  z-index: 0;
  pointer-events: none;
}
.auth__float--1 { top: 24px;  right: 24px; animation: authBob 6s ease-in-out infinite; }
.auth__float--2 { bottom: 24px; right: 24px; animation: authBob 5s ease-in-out infinite .8s; }
.auth__float--3 { bottom: 24px; left: 24px;  animation: authBob 7s ease-in-out infinite 1.5s; }

@keyframes authBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Right Form Area ─────────────────────────────────────────── */
.auth__form-wrap {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.auth__form-header { margin-bottom: 32px; }
.auth__form-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.auth__form-subtitle {
  font-size: .88rem;
  color: var(--slate-400);
}

/* ── Form Fields ─────────────────────────────────────────────── */
.auth__form { display: flex; flex-direction: column; gap: 16px; }

.auth__field { display: flex; flex-direction: column; gap: 7px; }

.auth__label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .02em;
}
.auth__label i { font-size: .72rem; color: var(--sky-500); }

.auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: all .3s var(--ease-out);
}
.auth__input-wrap:focus-within {
  border-color: var(--sky-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .1);
}

.auth__input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: .92rem;
  color: var(--slate-800);
}
.auth__input::placeholder { color: var(--slate-400); }
.auth__input--prefix { padding-left: 8px; }

.auth__input--error { border-color: var(--rose) !important; }
.auth__input-wrap:has(.auth__input--error),
.auth__input-wrap.auth__input-wrap--error {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .08);
}

/* +91 prefix for mobile */
.auth__prefix {
  padding: 14px 0 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .88rem;
  font-weight: 600;
  color: var(--slate-500);
  user-select: none;
  white-space: nowrap;
  border-right: 1px solid var(--slate-200);
  padding-right: 12px;
}

/* Error text */
.auth__error {
  font-size: .76rem;
  color: var(--rose);
  font-weight: 500;
  min-height: 0;
  transition: all .2s;
}

/* ── Eye Toggle Button ───────────────────────────────────────── */
.auth__eye {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--slate-400);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  flex-shrink: 0;
  margin-right: 4px;
}
.auth__eye:hover {
  color: var(--sky-500);
  background: var(--sky-50);
}

/* ── Password Strength Bar ───────────────────────────────────── */
.auth__strength {
  height: 4px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 2px;
}
.auth__strength-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width .4s var(--ease-out), background .4s;
}
.auth__strength-text {
  font-size: .72rem;
  font-weight: 600;
  min-height: 0;
  margin-top: 2px;
  transition: color .3s;
}

/* ── Options Row (Remember + Forgot) ─────────────────────────── */
.auth__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom checkbox */
.auth__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: var(--slate-600);
  cursor: pointer;
  user-select: none;
}
.auth__checkbox input { display: none; }
.auth__checkmark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--slate-300);
  display: grid;
  place-items: center;
  transition: all .2s;
  flex-shrink: 0;
  position: relative;
}
.auth__checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .6rem;
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: all .2s var(--ease-spring);
}
.auth__checkbox input:checked + .auth__checkmark {
  background: var(--sky-500);
  border-color: var(--sky-500);
}
.auth__checkbox input:checked + .auth__checkmark::after {
  opacity: 1;
  transform: scale(1);
}

/* Links */
.auth__link {
  font-size: .84rem;
  color: var(--sky-500);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.auth__link:hover { color: var(--sky-700); }
.auth__link--bold { font-weight: 700; }

/* ── Submit Button ───────────────────────────────────────────── */
.auth__submit {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 16px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
  margin-top: 4px;
  transition: all .3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.auth__submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
}
.auth__submit:hover::after { transform: translateX(100%); }

/* ── Divider ─────────────────────────────────────────────────── */
.auth__divider {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}
.auth__divider span {
  font-size: .78rem;
  color: var(--slate-400);
  white-space: nowrap;
}

/* ── Social Buttons ──────────────────────────────────────────── */
.auth__socials { display: flex; gap: 12px; }
.auth__social-btn {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s var(--ease-out);
}
.auth__social-btn:hover {
  border-color: var(--sky-300);
  background: var(--sky-50);
  color: var(--slate-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(14,165,233,.08);
}
.auth__social-btn i { font-size: 1.05rem; }

/* ── Switch (bottom link) ────────────────────────────────────── */
.auth__switch {
  text-align: center;
  font-size: .86rem;
  color: var(--slate-500);
}

/* ── Success Message Box ─────────────────────────────────────── */
.auth__success {
  display: none;
  text-align: center;
  padding: 24px;
  animation: authFadeUp .5s var(--ease-out);
}
.auth__success.active { display: block; }
.auth__success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: #059669;
  animation: authPop .5s var(--ease-spring) .2s both;
}
.auth__success-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--slate-800);
  margin-bottom: 8px;
}
.auth__success-desc {
  font-size: .88rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 24px;
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes authPop {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Info Box (Forgot Password) ──────────────────────────────── */
.auth__info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-md);
  font-size: .82rem;
  color: var(--slate-600);
  line-height: 1.6;
}
.auth__info i { color: var(--sky-500); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

/* ── Back Link ───────────────────────────────────────────────── */
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--slate-500);
  text-decoration: none;
  transition: color .2s;
  margin-bottom: 24px;
}
.auth__back:hover { color: var(--sky-600); }
.auth__back i { font-size: .72rem; }

/* ── Auth Header ─────────────────────────────────────────────── */
.auth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 165, 233, .08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .03);
}
.auth-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-header__home {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-200);
  background: #fff;
  color: var(--slate-500);
  font-size: .88rem;
  text-decoration: none;
  transition: all .25s var(--ease-out);
}
.auth-header__home:hover {
  border-color: var(--sky-300);
  color: var(--sky-600);
  background: var(--sky-50);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, .1);
}

/* ── Auth Footer ────────────────────────────────────────────── */
.auth-footer {
  padding: 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
}
.auth-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.auth-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--slate-200);
  gap: 24px;
  flex-wrap: wrap;
}
.auth-footer__brand { flex-shrink: 0; }
.auth-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.auth-footer__links a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: color .2s;
}
.auth-footer__links a:hover { color: var(--sky-600); }
.auth-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.auth-footer__bottom span {
  font-size: .76rem;
  color: var(--slate-400);
}
.auth-footer__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-footer__socials a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  font-size: .82rem;
  text-decoration: none;
  transition: all .2s;
}
.auth-footer__socials a:hover {
  color: var(--sky-600);
  background: var(--sky-50);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .auth__container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .auth__panel { display: none; }
  .auth__form-wrap { padding: 40px 32px; }
  .auth-header__inner { padding: 10px 20px; }
  .auth-footer__inner { padding: 0 20px; }
  .auth-footer__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .auth-footer__links { gap: 16px; }
}

@media (max-width: 480px) {
  .auth { padding: 90px 16px 40px; }
  .auth__form-wrap { padding: 32px 20px; }
  .auth__form-title { font-size: 1.4rem; }
  .auth__socials { flex-direction: column; }
  .auth__options { flex-direction: column; gap: 10px; align-items: flex-start; }
  .auth-header__inner { padding: 10px 16px; }
  .auth-footer__inner { padding: 0 16px; }
  .auth-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .auth-footer__links { justify-content: center; }
}
