/* ════════════════════════════════════════════════════════════════════════════
   EduPlan Authentication Architecture — Ultra-Sleek Dark Glassmorphism Surface
   Nordic Dark Design System • Precision Typography • Micro-Interactions
   ════════════════════════════════════════════════════════════════════════════ */

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

html, body {
  background-color: #070D1E !important;
  color: #F8FAFC !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
  background: radial-gradient(ellipse at 50% -10%, #102347 0%, #070D1E 55%, #03060F 100%) !important;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── Ambient Background Atmosphere ── */
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Subtle Geometric Grid Lines */
.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  pointer-events: none;
}

/* Glowing Ambient Floating Orbs */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.auth-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #0D9488 0%, rgba(13, 148, 136, 0) 70%);
  top: -140px;
  right: -100px;
}

.auth-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #3B82F6 0%, rgba(59, 130, 246, 0) 70%);
  bottom: -120px;
  left: -100px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.auth-orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #8B5CF6 0%, rgba(139, 92, 246, 0) 70%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.05); }
  100% { transform: translateY(20px) scale(0.96); }
}

/* ── Container & Glass Card ── */
.auth-container {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  margin: auto;
}

.auth-card {
  background: rgba(13, 22, 46, 0.88) !important;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-radius: 24px;
  padding: 40px 34px;
  box-shadow: 
    0 30px 65px -15px rgba(0, 0, 0, 0.85),
    0 0 45px -10px rgba(20, 184, 166, 0.2),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: relative;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.auth-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 35px 75px -15px rgba(0, 0, 0, 0.9),
    0 0 55px -8px rgba(20, 184, 166, 0.28),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* ── Brand Header ── */
.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: transform 150ms ease;
}

.auth-header .nav-logo:hover {
  transform: translateY(-1px);
}

.auth-header .nav-logo .nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
  transition: transform 150ms ease;
}

.auth-header .nav-logo:hover .nav-logo-img {
  transform: scale(1.06) rotate(-2deg);
}

.auth-header .nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.auth-header .nav-logo span {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: -0.02em;
}

.auth-header .nav-logo span strong {
  color: #14B8A6;
  font-weight: 800;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: #94A3B8 !important;
  font-size: 13.5px;
  line-height: 1.5;
}

/* ── Segmented Tab Switcher (Pill Style) ── */
.auth-tabs {
  display: flex;
  background: rgba(6, 11, 26, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent !important;
  color: #94A3B8 !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  transition: all 150ms ease;
  text-align: center;
  outline: none;
}

.auth-tab:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22) 0%, rgba(13, 148, 136, 0.16) 100%) !important;
  color: #5EEAD4 !important;
  border: 1px solid rgba(20, 184, 166, 0.45) !important;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.25);
}

/* ── Auth Form & Inputs ── */
.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0 !important;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.auth-form .required-star {
  color: #14B8A6;
  font-weight: 700;
}

/* Input Wrapper with Left SVG Icon */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-svg-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: #64748B;
  pointer-events: none;
  transition: color 150ms ease;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 2;
}

.input-icon-wrap input {
  width: 100%;
  height: 48px;
  font-family: inherit;
  font-size: 14px;
  color: #FFFFFF !important;
  background: rgba(6, 11, 26, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 12px;
  padding: 0 16px 0 44px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.input-icon-wrap input::placeholder {
  color: #64748B !important;
  opacity: 0.85;
}

.input-icon-wrap input:focus {
  border-color: #14B8A6 !important;
  background: rgba(8, 16, 38, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.input-icon-wrap input:focus ~ .input-svg-icon,
.input-icon-wrap:focus-within .input-svg-icon {
  color: #14B8A6;
}

/* Password Toggle Specifics */
.password-wrap input {
  padding-right: 46px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: transparent !important;
  border: none !important;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  transition: all 150ms ease;
  z-index: 2;
}

.password-toggle-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
}

.password-toggle-btn:hover {
  color: #5EEAD4;
  background: rgba(255, 255, 255, 0.08) !important;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid #14B8A6;
}

/* ── Primary Submit Button ── */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  margin-top: 6px;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(94, 234, 212, 0.35) !important;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.28) !important;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  transition: transform 150ms ease;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #2DD4BF 0%, #0F766E 100%) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.auth-submit-btn:hover svg {
  transform: translateX(3px);
}

.auth-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35) !important;
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Guest Explore Card & Divider ── */
.auth-guest-section {
  margin-top: 22px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 16px;
  color: #64748B !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-divider span {
  padding: 0 12px;
}

.guest-explore-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.guest-explore-card:hover {
  background: rgba(20, 184, 166, 0.1) !important;
  border-color: rgba(20, 184, 166, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(20, 184, 166, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.guest-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.guest-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.15);
  color: #5EEAD4;
  border: 1px solid rgba(20, 184, 166, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.guest-explore-card:hover .guest-icon-badge {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(20, 184, 166, 0.25);
  color: #FFFFFF;
}

.guest-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.guest-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #F8FAFC !important;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}

.guest-explore-card:hover .guest-card-title {
  color: #5EEAD4 !important;
}

.guest-card-desc {
  font-size: 11px;
  color: #94A3B8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 180ms ease;
}

.guest-explore-card:hover .guest-card-arrow {
  background: rgba(20, 184, 166, 0.3);
  color: #5EEAD4;
  transform: translateX(3px);
}

/* ── Footer Navigation Links ── */
.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #64748B !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.auth-footer a {
  color: #94A3B8 !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.auth-footer a:hover {
  color: #14B8A6 !important;
}

.auth-footer span {
  color: #334155 !important;
}

/* ── Mobile Viewport Adaptations ── */
@media (max-width: 480px) {
  .auth-page {
    padding: 20px 12px;
  }
  
  .auth-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  
  .auth-title {
    font-size: 21px;
  }
}