






:root {
  --font-display: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --bg-surface: rgba(15, 23, 42, 0.72);
  --bg-surface-elevated: rgba(24, 34, 60, 0.88);
  --bg-surface-hover: rgba(30, 42, 75, 0.95);
  --bg-card: rgba(17, 26, 48, 0.75);
  --bg-card-hover: rgba(26, 38, 70, 0.90);

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(199, 210, 254, 0.25);
  --border-strong: rgba(167, 139, 250, 0.40);
  --border-focus: #38bdf8;

  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-blue: #38bdf8;
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #f472b6;

  --glass-blur: blur(24px) saturate(190%);
  --input-bg: rgba(15, 23, 42, 0.85);
  --input-border: rgba(199, 210, 254, 0.25);

  --ig-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --ig-gradient-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(129, 140, 248, 0.12) 100%);
}


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }


.auth-portal-gate {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background: radial-gradient(circle at 50% 35%, #080d16 0%, #030508 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.auth-portal-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.auth-bg-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-bg-grid {
  position: absolute;
  inset: -100px;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px),
    radial-gradient(rgba(45, 212, 191, 0.08) 1.5px, transparent 1.5px);
  background-size: 38px 38px, 76px 76px;
  background-position: 0 0, 19px 19px;
  mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
  opacity: 0.65;
}

.auth-interactive-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.auth-cursor-spotlight {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  filter: blur(40px);
  z-index: 1;
  transition: opacity 0.3s ease;
}


.auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(85px);
  will-change: transform;
}

.auth-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.5) 0%, rgba(16, 185, 129, 0.18) 65%, transparent 100%);
  top: 8%;
  left: 18%;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.auth-orb-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42) 0%, rgba(99, 102, 241, 0.15) 65%, transparent 100%);
  bottom: 8%;
  right: 15%;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.auth-orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32) 0%, rgba(244, 63, 94, 0.1) 65%, transparent 100%);
  top: 45%;
  left: 58%;
  animation: floatOrb3 16s ease-in-out infinite alternate;
}

.auth-orb-4 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  bottom: 25%;
  left: 12%;
  animation: floatOrb4 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(-30px, -20px) scale(0.95); }
  50% { transform: translate(60px, 45px) scale(1.12); }
  100% { transform: translate(15px, -40px) scale(1.02); }
}

@keyframes floatOrb2 {
  0% { transform: translate(30px, 20px) scale(1); }
  50% { transform: translate(-50px, -55px) scale(1.18); }
  100% { transform: translate(-10px, 30px) scale(0.92); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.1); }
  100% { transform: translate(35px, -25px) scale(0.95); }
}

@keyframes floatOrb4 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-25px, 25px) scale(1); }
}

.auth-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 255, 255, 0.5) 50%, transparent),
    radial-gradient(2px 2px at 78% 18%, rgba(78, 242, 187, 0.6) 50%, transparent),
    radial-gradient(2px 2px at 82% 68%, rgba(168, 85, 247, 0.6) 50%, transparent),
    radial-gradient(1.2px 1.2px at 28% 78%, rgba(255, 255, 255, 0.35) 50%, transparent),
    radial-gradient(1.8px 1.8px at 52% 82%, rgba(45, 212, 191, 0.5) 50%, transparent),
    radial-gradient(1.5px 1.5px at 12% 55%, rgba(139, 92, 246, 0.4) 50%, transparent),
    radial-gradient(2px 2px at 88% 38%, rgba(244, 63, 94, 0.4) 50%, transparent);
  animation: particleFloat 12s ease-in-out infinite alternate;
}

@keyframes particleFloat {
  0% { transform: translateY(0px) scale(1); opacity: 0.65; }
  100% { transform: translateY(-20px) scale(1.04); opacity: 0.95; }
}


.auth-glass-card, .auth-monolith {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at 14% 12%, rgba(45, 212, 191, 0.16) 0%, rgba(20, 24, 33, 0.72) 40%, rgba(12, 15, 22, 0.85) 100%);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 40px 32px 32px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    0 0 1px 1px rgba(255, 255, 255, 0.14) inset,
    0 0 50px rgba(45, 212, 191, 0.08) inset;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-glass-card::before, .auth-monolith::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: radial-gradient(circle at 12% 10%, rgba(45, 212, 191, 0.32) 0%, rgba(32, 211, 182, 0.12) 35%, transparent 70%);
  border-radius: 32px 32px 0 0;
  pointer-events: none;
}

.auth-glass-sheen {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 20%) var(--mouse-y, 20%), rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.ag-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 22px;
}

.ag-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
}

.auth-glass-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-glass-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0;
}

.auth-glass-title .ag-title-dim {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.auth-glass-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 8px;
  font-weight: 400;
}


.glass-input-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: 8px 10px 8px 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glass-input-capsule:focus-within {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gic-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.gic-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.gic-input,
.gic-input:focus,
.gic-input:focus-visible,
.gic-input:active,
.gic-input:hover,
.gic-input:invalid,
.gic-input:-moz-ui-invalid,
.gic-input:user-invalid {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  width: 100% !important;
  padding: 0 !important;
}


.gic-input:-webkit-autofill,
.gic-input:-webkit-autofill:hover,
.gic-input:-webkit-autofill:focus,
.gic-input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(10, 18, 30, 0.95) inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  outline: none !important;
  border: none !important;
}

.gic-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

.gic-submit-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ef2bb 0%, #20d3b6 100%);
  color: #081714;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(78, 242, 187, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 10px;
}

.gic-submit-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(78, 242, 187, 0.6);
  background: linear-gradient(135deg, #5dfec5 0%, #29e8c8 100%);
}

.gic-submit-btn:active {
  transform: scale(0.95);
}

.glass-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 18px;
}

.glass-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.glass-divider span {
  position: relative;
  background: rgba(14, 18, 25, 0.95);
  padding: 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.08em;
}

.google-sso-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.glass-sso-btn {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px 12px 18px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.22s ease;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.glass-sso-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gsb-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.gsb-text {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.gsb-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2dd4bf;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.glass-sso-btn:hover .gsb-arrow {
  background: rgba(45, 212, 191, 0.25);
  border-color: rgba(45, 212, 191, 0.5);
  color: #5eead4;
  transform: translateX(2px);
}

.auth-glass-footer {
  text-align: center;
  margin-top: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-contact-admin-link {
  background: none;
  border: none;
  padding: 0;
  color: #4ef2bb;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-contact-admin-link:hover {
  color: #72ffcf;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(78, 242, 187, 0.4);
}


.google-chooser-backdrop,
.editorial-modal-backdrop,
#studentSwitcherModal,
#googleAccountsModal {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.google-chooser-backdrop.active,
.editorial-modal-backdrop.active,
#studentSwitcherModal.active,
#googleAccountsModal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 100001 !important;
}

.google-chooser-card {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  width: 100%;
  max-width: 440px;
  padding: 32px 32px 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: 'Space Grotesk', -apple-system, Roboto, sans-serif;
  color: #e3e3e3;
  animation: googleModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes googleModalIn {
  0% { transform: scale(0.95) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.gac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gac-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gac-brand span {
  font-size: 14.5px;
  font-weight: 500;
  color: #e3e3e3;
}

.gac-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #9aa0a6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.gac-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gac-title-wrap {
  margin: 24px 0 18px;
}

.gac-title {
  font-size: 24px;
  font-weight: 500;
  color: #f1f3f4;
  margin: 0;
  line-height: 1.25;
}

.gac-subtitle {
  font-size: 14px;
  color: #9aa0a6;
  margin-top: 6px;
}

.gac-subtitle strong {
  color: #e3e3e3;
}

.gac-list {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 20px;
}

.gac-account-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.gac-account-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.gac-account-item:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.1);
}

.gac-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
}

.gac-account-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gac-account-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f3f4;
  line-height: 1.3;
}

.gac-account-email {
  font-size: 12.5px;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.auth-step-header {
  margin-bottom: 18px;
}

.auth-step-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.auth-step-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.verified-email-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.veb-check {
  font-weight: 800;
}

.onboarding-avatar-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.oab-avatar-frame {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.oab-info {
  flex: 1;
}

.oab-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.oab-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.btn-signout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-signout:hover {
  color: var(--accent-rose);
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

.btn-signout:active {
  transform: scale(0.965) translateY(1px);
}

.form-group-impeccable {
  margin-bottom: 16px;
}

.form-group-impeccable label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input-impeccable {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

select.form-input-impeccable option {
  background-color: #0f172a;
  color: #f8fafc;
}

.form-input-impeccable:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-input-prefix {
  width: 130px;
  flex-shrink: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pseudo-prefix-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pseudo-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pseudo-tags-cloud::-webkit-scrollbar {
  display: none !important;
}

.pseudo-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pseudo-tag:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.pseudo-tag.active {
  background: var(--ig-gradient-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.match-trigger-button {
  width: 100%;
  background: var(--ig-gradient);
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: -0.2px;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  box-sizing: border-box;
}

.match-trigger-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  filter: brightness(1.04);
}

.match-trigger-button:active {
  transform: scale(0.965) translateY(1px) !important;
  filter: brightness(0.92) contrast(1.05);
}

.editorial-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

.editorial-modal-backdrop.active .editorial-modal-card {
  transform: scale(1);
}

button.btn-contact-admin-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #34d399;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

button.btn-contact-admin-link:focus-visible,
#contactAdminModal button:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 3px;
}

#contactAdminModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  overflow-y: auto;
  background: rgba(8, 13, 22, 0.7);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

#contactAdminModal.active {
  z-index: 100010 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#contactAdminModal .editorial-modal-card {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  max-height: 90vh;
  max-height: min(90vh, 90dvh);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(15, 22, 34, 0.96);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.62);
  color: var(--text-primary, #e3e3e3);
  font-family: var(--font-sans, 'Outfit', 'Space Grotesk', sans-serif);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
}

#contactAdminModal.active .editorial-modal-card {
  transform: translateY(0) scale(1);
}

#contactAdminModal .contact-modal-close {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e3e3e3;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#contactAdminModal .contact-modal-confirm {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  #contactAdminModal,
  #contactAdminModal .editorial-modal-card {
    transition: none;
  }
}

.google-logo-svg {
  flex-shrink: 0;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media (max-width: 768px) {

  .auth-orb {
    display: none !important;
  }
  .auth-interactive-canvas {
    display: none !important;
  }
  .auth-bg-particles {
    display: none !important;
  }
  .auth-cursor-spotlight {
    display: none !important;
  }
  .auth-bg-canvas {
    background: #080d16 !important;
  }
  .auth-portal-gate {
    background: #080d16 !important;
    padding: 16px !important;
    align-items: center !important;
  }
  .auth-glass-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: auto !important;
    padding: 28px 18px 24px !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  }
  .auth-glass-title {
    font-size: 26px !important;
  }
}


#studentSwitcherModal,
#googleAccountsModal,
.google-chooser-backdrop,
.editorial-modal-backdrop {
  z-index: 100000 !important;
}

#studentSwitcherModal.active,
#googleAccountsModal.active,
.google-chooser-backdrop.active,
.editorial-modal-backdrop.active {
  z-index: 100001 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


button,
.match-trigger-button,
.btn-signout,
.glass-sso-btn,
.btn-contact-admin-link {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.18s ease,
              border-color 0.18s ease,
              filter 0.15s ease;
  will-change: transform;
}
button:hover,
.match-trigger-button:hover,
.glass-sso-btn:hover {
  filter: brightness(1.04);
}
button:active,
.match-trigger-button:active,
.btn-signout:active,
.glass-sso-btn:active {
  transform: scale(0.965) translateY(1px) !important;
  filter: brightness(0.92) contrast(1.05);
}


@media (hover: none) and (pointer: coarse) {
  .glass-sso-btn,
  .gic-submit-btn,
  .btn-signout,
  .btn-contact-admin-link,
  .btn-retry-login {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .form-input-impeccable,
  .gic-input,
  input,
  select,
  textarea {
    font-size: 16px !important;
    touch-action: manipulation;
  }

  select.form-input-impeccable {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
  }
}

@supports (-webkit-touch-callout: none) {
  html, body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  button, a, input, select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media (max-width: 380px) {
  .auth-glass-card {
    padding: 28px 18px 24px !important;
  }
}

.support-email-copyable { color: #aeb8c6; font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
