/* ---- Magnet auth & Stripe overlay ---- */

/* Lime/yellow accent — matches apexbeat-landing (#CCFF00) */
:root {
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent: #ccff00;
  --primary-light: #e5ff66;
  --gradient-purple-cyan: linear-gradient(135deg, #ccff00 0%, #a8d920 100%);
  --shadow-glow: 0 0 48px rgba(204, 255, 0, 0.14), 0 0 96px rgba(204, 255, 0, 0.06);
  --danger: #ef4444;
}

#magnet-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.magnet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 17, 0.72);
  backdrop-filter: blur(6px);
}

.magnet-sheet {
  position: relative;
  width: min(520px, 100%);
  margin: 4vh auto 2rem;
  background: linear-gradient(
    155deg,
    rgba(17, 17, 40, 0.98) 0%,
    rgba(10, 10, 26, 0.99) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--shadow-glow);
  padding: 28px 28px 72px;
  color: var(--text-primary);
  z-index: 1;
}

.magnet-view-scroll {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 6px;
}

.magnet-view-scroll::-webkit-scrollbar {
  width: 6px;
}
.magnet-view-scroll::-webkit-scrollbar-thumb {
  background: rgba(204, 255, 0, 0.45);
  border-radius: 99px;
}

.magnet-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-align: center;
}

.magnet-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 22px;
}

.magnet-muted a {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.magnet-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.magnet-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.magnet-input,
.magnet-select {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

/** Dark native dropdown panel (study year etc.) — avoids white option rows on Windows/Chrome */
#magnet-modal .magnet-select {
  color-scheme: dark;
}

#magnet-modal .magnet-select option {
  background-color: #141428;
  color: rgba(255, 255, 255, 0.92);
}

.magnet-input:focus,
.magnet-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.22);
}

.magnet-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .magnet-split {
    grid-template-columns: 1fr 1fr;
  }

  .magnet-split-item:first-child {
    grid-column: 1 / -1;
  }
}

.magnet-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--gradient-purple-cyan);
  color: #0a0a1a;
}

.magnet-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 28px rgba(204, 255, 0, 0.35);
}

.magnet-submit:active {
  transform: scale(0.99);
}

.magnet-link-as-btn {
  text-decoration: none;
}

.magnet-field-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 1rem;
}

.magnet-form-hint {
  font-size: 13px;
  line-height: 1.45;
  min-height: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
}

.magnet-form-hint--success {
  color: #ddff66;
}

.magnet-form-hint--neutral {
  color: rgba(255, 255, 255, 0.68);
}

.magnet-form-hint--loading {
  color: #e5ff99;
}

.magnet-form-hint--error {
  color: var(--danger);
}

.magnet-post-login-lead {
  color: rgba(221, 255, 102, 0.95);
}

.magnet-center {
  text-align: center;
}

.magnet-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  margin: 4px 0 0;
}

.magnet-radio {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 14px;
  margin-top: 8px;
}

.magnet-checkbox {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.magnet-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.magnet-icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.magnet-icon-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.magnet-toast {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 6;
}

.magnet-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.magnet-toast-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.magnet-toast-neutral {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.95);
}

/* ---- Medical university: simple search dropdown ---- */

.magnet-college-picker {
  margin-top: 4px;
}

.magnet-college-shell {
  width: 100%;
}

.magnet-college-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.magnet-college-search-ico {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.magnet-college-search-input {
  padding-left: 38px !important;
  padding-right: 40px !important;
}

.magnet-college-inline-x {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.magnet-college-inline-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.magnet-college-dropdown {
  position: fixed;
  z-index: 100050;
  max-height: min(260px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 32, 0.98);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(204, 255, 0, 0.14);
}

.magnet-college-dropdown-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.magnet-college-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(204, 255, 0, 0.28);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: magnet-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes magnet-spin {
  to {
    transform: rotate(360deg);
  }
}

.magnet-college-dropdown-empty {
  padding: 14px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  text-align: center;
}

.magnet-college-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.magnet-college-li {
  margin: 0;
}

.magnet-college-option {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  line-height: 1.35;
}

.magnet-college-option:hover,
.magnet-college-option:focus-visible {
  background: rgba(204, 255, 0, 0.16);
  outline: none;
}
