/* ============================================================
   auth.css — Login / Set-Password Page Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

body.auth-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 25%, rgba(67,24,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0,153,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0,214,143,0.06) 0%, transparent 60%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}
body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Floating orbs */
.auth-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.auth-orb-1 { width: 300px; height: 300px; background: #4318FF; top: -80px; left: -80px; }
.auth-orb-2 { width: 250px; height: 250px; background: #0099FF; bottom: -60px; right: -60px; animation-delay: -4s; }
.auth-orb-3 { width: 200px; height: 200px; background: #00D68F; top: 40%; left: 40%; animation-delay: -2s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}

/* ── Auth Card ────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 920px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  display: flex;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
}

/* Left Panel */
.auth-left {
  width: 42%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.auth-left.admin-panel  { background: linear-gradient(160deg, rgba(67,24,255,0.9), rgba(43,54,116,0.9)); }
.auth-left.member-panel { background: linear-gradient(160deg, rgba(0,184,122,0.9), rgba(0,150,100,0.9)); }

.auth-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.auth-brand-logo {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.auth-brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.auth-brand-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.auth-features { list-style: none; position: relative; z-index: 1; }
.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 12px;
}
.auth-features li i { font-size: 1rem; color: rgba(255,255,255,0.9); flex-shrink: 0; }
.auth-left-footer { color: rgba(255,255,255,0.35); font-size: 11.5px; position: relative; z-index: 1; }

/* Right Panel */
.auth-right {
  flex: 1;
  background: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-head-icon { font-size: 2.4rem; margin-bottom: 8px; }
.auth-head-icon.admin  { color: #4318FF; }
.auth-head-icon.member { color: #00B87A; }
.auth-title { font-size: 1.65rem; font-weight: 800; color: #0F172A; margin-bottom: 4px; letter-spacing: -0.03em; }
.auth-sub   { font-size: 13.5px; color: #64748B; margin-bottom: 28px; font-weight: 500; }

/* Form Elements */
.auth-form-group { margin-bottom: 18px; }
.auth-label { display: block; font-size: 12.5px; font-weight: 700; color: #374151; margin-bottom: 7px; }

.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px 12px 40px;
  font-size: 14px;
  color: #1E293B;
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.auth-input:focus {
  border-color: #4318FF;
  box-shadow: 0 0 0 3px rgba(67,24,255,0.12);
  background: #fff;
}
.auth-input.member:focus {
  border-color: #00B87A;
  box-shadow: 0 0 0 3px rgba(0,184,122,0.12);
}
.auth-input.has-right { padding-right: 44px; }
.eye-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  font-size: 0.95rem;
  padding: 4px;
}
.eye-toggle:hover { color: #475569; }

.auth-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  margin-top: 8px;
}
.auth-btn.admin  { background: linear-gradient(135deg, #4318FF, #2B3674); color: #fff; box-shadow: 0 6px 20px rgba(67,24,255,0.3); }
.auth-btn.admin:hover  { box-shadow: 0 8px 28px rgba(67,24,255,0.4); transform: translateY(-2px); }
.auth-btn.member { background: linear-gradient(135deg, #00D68F, #00B87A); color: #fff; box-shadow: 0 6px 20px rgba(0,214,143,0.3); }
.auth-btn.member:hover { box-shadow: 0 8px 28px rgba(0,214,143,0.4); transform: translateY(-2px); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.auth-portal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #F8FAFC;
}
.auth-portal-link:hover { border-color: #4318FF; color: #4318FF; background: #EEF2FF; }

.auth-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-alert.danger  { background: #FEE2E2; color: #DC2626; }
.auth-alert.success { background: #DCFCE7; color: #15803D; }
.auth-alert.warning { background: #FEF3C7; color: #B45309; }

/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-strength-bar {
  height: 4px;
  border-radius: 4px;
  background: #E2E8F0;
  overflow: hidden;
  margin-bottom: 4px;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 0;
}
.pw-strength-fill.weak   { width: 25%; background: #EF4444; }
.pw-strength-fill.fair   { width: 50%; background: #F59E0B; }
.pw-strength-fill.good   { width: 75%; background: #0099FF; }
.pw-strength-fill.strong { width: 100%; background: #00D68F; }
.pw-strength-text { font-size: 11.5px; font-weight: 700; }

/* Mobile */
@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { padding: 36px 24px; border-radius: 28px; }
  .auth-card  { max-width: 420px; }
  .auth-title { font-size: 1.4rem; }
}
