/* ========================================================
   AcademicAdviser — Login & Registration Page Styles
   ======================================================== */

/* Animated background particles */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 40%, #1e1b4b 70%, #0a0e1a 100%);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}
.auth-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}
.auth-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  top: 50%; left: 60%;
  animation: floatOrb 6s ease-in-out infinite 2s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  z-index: 10;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-logo-ring {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(99,102,241,0.4);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 60px rgba(99,102,241,0.7), 0 0 80px rgba(6,182,212,0.3); }
}

.auth-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Tab Toggle */
.auth-tabs {
  display: flex;
  background: rgba(30,41,59,0.6);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.75rem;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #64748b;
  background: transparent;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* Input Field Enhanced */
.input-wrapper {
  position: relative;
  margin-bottom: 1.1rem;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.auth-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  background: rgba(30,41,59,0.7);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.25s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(30,41,59,0.9);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.18);
}

.auth-input::placeholder { color: #475569; }

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
}

.auth-submit-btn:hover::before { opacity: 1; }
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
}
.auth-submit-btn:active { transform: translateY(0); }

/* Role Selector Cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.role-card {
  padding: 0.75rem;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: rgba(30,41,59,0.5);
  font-size: 0.8rem;
  color: #94a3b8;
}

.role-card:hover {
  border-color: rgba(99,102,241,0.4);
  color: #fff;
  background: rgba(99,102,241,0.1);
}

.role-card.selected {
  border-color: #6366f1;
  background: rgba(99,102,241,0.2);
  color: #fff;
  box-shadow: 0 0 12px rgba(99,102,241,0.2);
}

.role-card-icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }

/* Error / Alert Box */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-alert.error {
  background: rgba(244,63,94,0.15);
  border: 1px solid rgba(244,63,94,0.4);
  color: #f87171;
}
.auth-alert.success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: #34d399;
}

/* Demo Quick Login Pills */
.demo-login-bar {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.demo-login-bar p {
  font-size: 0.75rem;
  color: #475569;
  text-align: center;
  margin-bottom: 0.6rem;
}
.demo-pills-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.demo-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.demo-pill.student  { color: #34d399; border-color: rgba(16,185,129,0.4); }
.demo-pill.adviser  { color: #818cf8; border-color: rgba(99,102,241,0.4); }
.demo-pill.counsellor{ color: #c084fc; border-color: rgba(168,85,247,0.4); }
.demo-pill.admin    { color: #fbbf24; border-color: rgba(245,158,11,0.4); }
.demo-pill:hover    { color: #fff; background: rgba(255,255,255,0.08); }

/* Loader spinner */
.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
