/* ====================================================================
   PeerPass Next-Gen Auth Experience: Styles & Animations
   ==================================================================== */

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

:root {
  --pp-primary: #125e43;
  --pp-primary-hover: #0c4632;
  --pp-primary-light: #e6f4ea;
  --pp-accent: #f59e0b;
  --pp-accent-glow: rgba(245, 158, 11, 0.35);
  --pp-emerald: #10b981;
  --pp-emerald-glow: rgba(16, 185, 129, 0.4);
  --pp-surface: rgba(255, 255, 255, 0.94);
  --pp-surface-card: #ffffff;
  --pp-border: rgba(18, 94, 67, 0.12);
  --pp-border-focus: #10b981;
  --pp-text-main: #0f172a;
  --pp-text-muted: #64748b;
  --pp-text-light: #94a3b8;
  --pp-danger: #ef4444;
  --pp-success: #10b981;
  --pp-shadow-glow: 0 20px 60px -15px rgba(18, 94, 67, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  --pp-radius-card: 24px;
  --pp-radius-sm: 10px;
  --pp-radius-pill: 9999px;
  --pp-font-display: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --pp-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Modal Dialog Shell & Backdrop */
.app-dialog {
  border: none;
  background: transparent;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 94vh;
  border-radius: var(--pp-radius-card);
  box-shadow: 0 30px 100px -20px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: visible;
  outline: none;
}

.app-dialog.is-auth-mode .dialog-shell {
  padding: 0 !important;
  background: transparent !important;
}

.app-dialog.is-auth-mode > .dialog-shell > #dialogClose {
  display: none !important;
}

.app-dialog::backdrop {
  background: radial-gradient(circle at 50% 30%, rgba(18, 94, 67, 0.4), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: backdropFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes backdropFade {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(14px); }
}

/* Dialog Container Card */
.auth-card {
  position: relative;
  background: var(--pp-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--pp-radius-card);
  padding: 34px 36px 36px;
  color: var(--pp-text-main);
  font-family: var(--pp-font-body);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--pp-shadow-glow);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 94, 67, 0.2) transparent;
  animation: modalScaleUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

@keyframes modalScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Decorative Ambient Glow Orbs */
.auth-glow-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(55px);
  z-index: 0;
  opacity: 0.65;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.auth-glow-orb-1 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
  top: -80px;
  right: -60px;
}

.auth-glow-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 70%);
  bottom: -100px;
  left: -90px;
  animation-duration: 10s;
  animation-delay: -3s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.08); }
  100% { transform: translate(-10px, 12px) scale(0.95); }
}

/* Relative content wrapper to stay above glow */
.auth-inner {
  position: relative;
  z-index: 1;
}

/* Close Button */
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(18, 94, 67, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--pp-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dialog-close:hover {
  background: #ffffff;
  color: var(--pp-text-main);
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(18, 94, 67, 0.15);
}

/* Brand Logo & Header */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.auth-logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #125e43 0%, #059669 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: 'Georgia', serif;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(18, 94, 67, 0.35);
  position: relative;
  overflow: hidden;
  animation: logoPulse 4s infinite ease-in-out;
}

.auth-logo-symbol::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 65%
  );
  transform: rotate(25deg);
  animation: logoSweep 5s infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(18, 94, 67, 0.35); transform: translateY(0); }
  50% { box-shadow: 0 14px 28px rgba(16, 185, 129, 0.45); transform: translateY(-2px); }
}

@keyframes logoSweep {
  0% { transform: translateX(-150%) rotate(25deg); }
  30%, 100% { transform: translateX(150%) rotate(25deg); }
}

.auth-brand-name {
  font-family: var(--pp-font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(110deg, #0f172a 30%, #059669 50%, #0f172a 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s infinite linear;
}

@keyframes textShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.auth-campus-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 94, 67, 0.08);
  border: 1px solid rgba(18, 94, 67, 0.16);
  color: var(--pp-primary);
  font-family: var(--pp-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: var(--pp-radius-pill);
  margin-bottom: 10px;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  background: var(--pp-emerald);
  border-radius: 50%;
  position: relative;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: var(--pp-emerald);
  opacity: 0.6;
  animation: beaconPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.auth-title {
  font-family: var(--pp-font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.9px;
  color: var(--pp-text-main);
  margin: 0 0 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 13px;
  line-height: 1.55;
  color: var(--pp-text-muted);
  max-width: 360px;
  margin: 0 auto;
}

/* Morphing Tab Switcher */
.auth-tabs-segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f2;
  padding: 4px;
  border-radius: 14px;
  margin: 20px 0 22px;
  border: 1px solid rgba(18, 94, 67, 0.08);
}

.auth-tab-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--pp-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--pp-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  color: var(--pp-primary);
  font-weight: 700;
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(18, 94, 67, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.auth-tabs-segmented[data-active="signup"] .auth-tab-indicator {
  transform: translateX(100%);
}

/* Continue with Google Button */
.google-auth-btn-lux {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #1e293b;
  font-family: var(--pp-font-display);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.google-auth-btn-lux::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transition: 0.5s;
}

.google-auth-btn-lux:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.google-auth-btn-lux:hover::before {
  left: 100%;
}

.google-auth-btn-lux:active {
  transform: translateY(0) scale(0.99);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Elegant Separator */
.auth-divider-lux {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 18px;
  color: var(--pp-text-light);
  font-family: var(--pp-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.auth-divider-lux::before,
.auth-divider-lux::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #e2e8f0 30%, #e2e8f0 70%, transparent);
}

/* Form Groups & Inputs */
.auth-form-lux {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: formFadeIn 0.3s ease forwards;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--pp-font-display);
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.auth-label-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--pp-text-light);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input {
  width: 100%;
  height: 45px;
  padding: 0 14px 0 42px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: var(--pp-text-main);
  font-family: var(--pp-font-body);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.auth-input.no-icon {
  padding-left: 14px;
}

.auth-input:focus {
  border-color: var(--pp-border-focus);
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.18);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--pp-emerald);
}

.auth-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

/* Password Toggle Button */
.auth-pwd-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: color 0.18s ease;
}

.auth-pwd-toggle:hover {
  color: var(--pp-text-main);
}

.auth-pwd-toggle svg {
  width: 18px;
  height: 18px;
}

/* College Domain Quick Chip */
.domain-quick-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f8f4;
  border: 1px dashed rgba(18, 94, 67, 0.3);
  color: var(--pp-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 4px;
}

.domain-quick-chip:hover {
  background: var(--pp-primary-light);
  border-style: solid;
  transform: translateY(-1px);
}

/* Dynamic Interactive Password Strength Meter */
.pwd-strength-container {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pwd-strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.pwd-bar {
  background: #e2e8f0;
  height: 100%;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.pwd-bar.active-1 { background: #ef4444; }
.pwd-bar.active-2 { background: #f97316; }
.pwd-bar.active-3 { background: #eab308; }
.pwd-bar.active-4 { background: #10b981; }

.pwd-strength-hints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--pp-text-light);
}

.pwd-strength-text {
  font-weight: 600;
}

.pwd-strength-text.strength-1 { color: #ef4444; }
.pwd-strength-text.strength-2 { color: #f97316; }
.pwd-strength-text.strength-3 { color: #ca8a04; }
.pwd-strength-text.strength-4 { color: #10b981; }

/* Interactive Year Selector Pills */
.year-pills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.year-pill-btn {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 4px;
  border-radius: 10px;
  font-family: var(--pp-font-display);
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.year-pill-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.year-pill-btn.active {
  border-color: var(--pp-primary);
  background: var(--pp-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(18, 94, 67, 0.25);
}

/* Select Dropdown */
.auth-select {
  width: 100%;
  height: 45px;
  padding: 0 14px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: var(--pp-text-main);
  font-family: var(--pp-font-body);
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-select:focus {
  border-color: var(--pp-border-focus);
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.18);
}

/* Primary Submit Button */
.auth-btn-primary {
  position: relative;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #125e43 0%, #059669 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--pp-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px -6px rgba(18, 94, 67, 0.45);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  margin-top: 6px;
}

.auth-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: 0.6s;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #0f4f38 0%, #047857 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 14px 28px -4px rgba(18, 94, 67, 0.55);
}

.auth-btn-primary:hover::after {
  left: 100%;
}

.auth-btn-primary:active {
  transform: translateY(0) scale(0.99);
}

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

/* Button arrow animation */
.auth-btn-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-btn-primary:hover .auth-btn-arrow {
  transform: translateX(3px);
}

/* Spinner Loader */
.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Switch & Auxiliary Links */
.auth-switch-link {
  background: none;
  border: none;
  color: var(--pp-primary);
  font-family: var(--pp-font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  transition: color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.auth-switch-link:hover {
  color: var(--pp-primary-hover);
  text-decoration: underline;
}

.auth-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Error & Status Alert Cards */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 6px;
  animation: alertShake 0.4s ease;
}

@keyframes alertShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.auth-alert.error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.auth-alert.success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.auth-alert.info {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
}

.auth-alert-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* OTP 6-Digit Code Input */
.otp-input-container {
  display: flex;
  justify-content: center;
  margin: 14px 0 10px;
}

.otp-token-input {
  width: 240px;
  height: 56px;
  letter-spacing: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding-left: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--pp-primary);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.otp-token-input:focus {
  border-color: var(--pp-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Digital Campus Student ID Card (Logged-in Profile View) */
.student-id-card {
  position: relative;
  background: linear-gradient(145deg, #125e43 0%, #064e3b 100%);
  border-radius: 18px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(18, 94, 67, 0.35);
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.student-id-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.id-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.id-card-college {
  font-family: var(--pp-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a7f3d0;
  text-transform: uppercase;
}

.id-card-chip {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.id-card-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.id-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--pp-primary);
  font-family: var(--pp-font-display);
  font-size: 24px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.id-card-info {
  flex: 1;
  min-width: 0;
}

.id-card-name {
  font-family: var(--pp-font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-card-meta {
  font-size: 11.5px;
  color: #d1fae5;
  margin: 0 0 6px;
}

.id-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.id-badge.verified {
  background: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.id-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.id-stat-num {
  font-family: var(--pp-font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.id-stat-label {
  font-size: 9.5px;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* Account Actions Grid */
.account-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.account-action-btn {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--pp-font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-action-btn:hover {
  border-color: var(--pp-border-focus);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 94, 67, 0.08);
}

.account-action-icon {
  font-size: 20px;
}

/* Sign Out Button */
.auth-btn-signout {
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #fee2e2;
  border-radius: 12px;
  color: #dc2626;
  font-family: var(--pp-font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn-signout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* Toast Notifications */
.pp-toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.pp-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--pp-radius-pill);
  font-family: var(--pp-font-display);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  animation: toastPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pp-toast.success {
  background: #125e43;
  box-shadow: 0 14px 34px rgba(18, 94, 67, 0.4);
}

.pp-toast.error {
  background: #991b1b;
  box-shadow: 0 14px 34px rgba(153, 27, 27, 0.4);
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Confetti Burst Particle Canvas */
#authConfettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

/* Responsive Rules */
@media (max-width: 580px) {
  .auth-card {
    padding: 26px 20px 28px;
    border-radius: 20px;
  }
  .auth-title {
    font-size: 22px;
  }
  .auth-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .year-pills-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .account-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================================
   ZEFICATES PARENT COMPANY BRANDING STYLES (AUTH MODAL)
   ==================================================================== */

.auth-brand-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.auth-brand-by {
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
}

.auth-brand-by strong {
  font-family: 'Times New Roman', Georgia, serif;
  color: var(--pp-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 9.5px;
}

/* Zeficates Parent Company Badge Row */
.auth-zeficates-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(135deg, #f4f8f5 0%, #edf4ee 100%);
  border: 1px solid #d4e5d8;
  border-radius: 12px;
  padding: 9px 13px;
  margin: 12px 0 16px;
  box-shadow: 0 2px 8px rgba(18, 94, 67, 0.05);
}

.auth-zef-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-zef-eagle-mini {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.auth-zef-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.auth-zef-parent-kicker {
  font-size: 7.5px;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--pp-primary);
  text-transform: uppercase;
}

.auth-zef-parent-title {
  font: 800 12px Manrope, sans-serif;
  color: #0f172a;
  letter-spacing: 1.5px;
}

.auth-zef-status-pill {
  font-size: 9px;
  font-weight: 700;
  color: #10b981;
  background: #ffffff;
  border: 1px solid #cce8d5;
  padding: 3px 8px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-parent-modal-footer {
  border-top: 1px solid #eef2ef;
  margin-top: 20px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.auth-parent-footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.auth-parent-footer-text {
  font-size: 10px;
  color: #64748b;
  line-height: 1.5;
}

.auth-parent-footer-text strong {
  color: var(--pp-primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Student ID Card with Zeficates Seal */
.id-card-zef-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.id-card-zef-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}



/* ============================================================
   AUTH MODAL - MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .app-dialog {
    width: 100vw;
    max-height: 96vh;
    border-radius: 20px 20px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
  }
  .auth-card { padding: 24px 18px 28px; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .auth-title { font-size: 20px; letter-spacing: -0.6px; }
  .auth-subtitle { font-size: 12px; }
  .auth-brand-name { font-size: 21px; }
  .auth-logo-symbol { width: 38px; height: 38px; font-size: 22px; }
  .auth-tabs-segmented { margin: 14px 0 16px; }
  .auth-tab-btn { font-size: 12px; padding: 8px 12px; }
  .google-auth-btn-lux { height: 44px; font-size: 12.5px; }
  .auth-input { height: 42px; font-size: 13px; }
  .auth-select { height: 42px; font-size: 13px; }
  .auth-field-row { grid-template-columns: 1fr; gap: 10px; }
  .year-pills-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .year-pill-btn { padding: 7px 2px; font-size: 11px; border-radius: 8px; }
  .auth-btn-primary { height: 44px; font-size: 13px; }
  .auth-btn-signout { height: 40px; font-size: 12px; }
  .student-id-card { padding: 18px 16px; border-radius: 14px; }
  .id-card-name { font-size: 15px; }
  .id-card-avatar { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .id-stat-num { font-size: 13px; }
  .account-actions-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .account-action-btn { padding: 10px 8px; font-size: 11px; }
  .auth-zeficates-badge-row { padding: 7px 10px; margin: 10px 0 12px; border-radius: 10px; }
  .auth-zef-parent-title { font-size: 11px; }
  .auth-zef-eagle-mini { width: 24px; height: 24px; }
  .otp-token-input { width: 200px; height: 50px; font-size: 24px; letter-spacing: 10px; }
  .pp-toast { font-size: 12px; padding: 10px 16px; }
}

@media (max-width: 360px) {
  .auth-card { padding: 20px 14px 24px; }
  .auth-title { font-size: 18px; }
  .year-pill-btn { font-size: 10px; padding: 6px 1px; }
}

/* ============================================================
   AUTH MODAL - MOBILE THEME OVERRIDES (White/Orange & Black/Orange)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --pp-primary: #ff6200;
    --pp-primary-hover: #e55300;
    --pp-primary-light: #fff2e8;
    --pp-border: rgba(255, 98, 0, 0.16);
    --pp-border-focus: #ff6200;
    --pp-accent: #ff8533;
    --pp-shadow-glow: 0 20px 60px -15px rgba(255, 98, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  }

  html.mobile-dark {
    --pp-primary: #ff7828;
    --pp-primary-hover: #ff8c42;
    --pp-primary-light: rgba(255, 120, 40, 0.16);
    --pp-surface: #121319;
    --pp-surface-card: #161720;
    --pp-border: #292b38;
    --pp-border-focus: #ff7828;
    --pp-text-main: #f9fafb;
    --pp-text-muted: #9ca3af;
    --pp-text-light: #6b7280;
    --pp-shadow-glow: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
  }

  html.mobile-dark .app-dialog::backdrop {
    background: radial-gradient(circle at 50% 30%, rgba(255, 98, 0, 0.22), rgba(8, 9, 12, 0.92)) !important;
  }

  html.mobile-dark .auth-card {
    background: #121319 !important;
    border: 1px solid #262836 !important;
    color: #f9fafb !important;
  }

  html.mobile-dark .auth-title {
    color: #ffffff !important;
  }

  html.mobile-dark .auth-subtitle {
    color: #9ca3af !important;
  }

  html.mobile-dark .auth-input,
  html.mobile-dark .auth-select {
    background: #181a24 !important;
    border-color: #2b2e3d !important;
    color: #ffffff !important;
  }

  html.mobile-dark .auth-input:focus,
  html.mobile-dark .auth-select:focus {
    border-color: #ff7828 !important;
    box-shadow: 0 0 0 3px rgba(255, 120, 40, 0.22) !important;
  }

  html.mobile-dark .auth-tab-btn {
    color: #9ca3af !important;
  }

  html.mobile-dark .auth-tab-btn.active {
    background: #ff6200 !important;
    color: #ffffff !important;
  }

  html.mobile-dark .auth-tabs-segmented {
    background: #181a24 !important;
    border-color: #2b2e3d !important;
  }

  html.mobile-dark .google-auth-btn-lux {
    background: #181a24 !important;
    border-color: #2b2e3d !important;
    color: #f3f4f6 !important;
  }

  html.mobile-dark .auth-zeficates-badge-row {
    background: #181a24 !important;
    border-color: #2b2e3d !important;
  }

  html.mobile-dark .auth-zef-parent-title {
    color: #ffffff !important;
  }

  html.mobile-dark .auth-zef-eagle-mini {
    background: #ffffff;
    border-radius: 6px;
    padding: 2px;
  }

  html.mobile-dark .auth-parent-modal-footer {
    border-top-color: #262836 !important;
  }

  html.mobile-dark .auth-parent-footer-logo {
    background: #ffffff;
    border-radius: 6px;
    padding: 2px;
  }

  html.mobile-dark .auth-btn-primary {
    background: #ff6200 !important;
    color: #ffffff !important;
  }

  html.mobile-dark .auth-btn-primary:hover {
    background: #e55300 !important;
  }

  html.mobile-dark .year-pill-btn {
    background: #181a24 !important;
    border-color: #2b2e3d !important;
    color: #9ca3af !important;
  }

  html.mobile-dark .year-pill-btn.active {
    background: #ff6200 !important;
    border-color: #ff6200 !important;
    color: #ffffff !important;
  }

  html.mobile-dark .account-action-btn {
    background: #181a24 !important;
    border-color: #2b2e3d !important;
    color: #ffffff !important;
  }

  html.mobile-dark .account-action-btn:hover {
    border-color: #ff7828 !important;
  }

  html.mobile-dark .student-id-card {
    background: linear-gradient(135deg, #181923 0%, #201a14 100%) !important;
    border-color: #ff7828 !important;
  }

  html.mobile-dark .dialog-close {
    color: #9ca3af !important;
  }
}

