/* ==========================================================================
   Success / notice popup  (used by register.html and team_register.html)
   Matches the site's dark navy + cyan glass-card theme.
   ========================================================================== */
.sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 12, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.sp-overlay.sp-show { opacity: 1; }

.sp-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 34px 30px 28px;
  text-align: center;
  color: #eaf4f7;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(155deg, rgba(11,32,48,0.96) 0%, rgba(8,22,34,0.98) 100%);
  border: 1px solid rgba(18, 214, 240, 0.35);
  border-radius: 20px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: translateY(14px) scale(.96);
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2);
}
.sp-overlay.sp-show .sp-card { transform: translateY(0) scale(1); }

.sp-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 214, 240, 0.12);
  border: 2px solid #12d6f0;
  box-shadow: 0 0 24px rgba(18, 214, 240, 0.35);
}
.sp-icon svg { width: 38px; height: 38px; }
.sp-icon svg path {
  fill: none;
  stroke: #12d6f0;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: sp-draw .55s .25s ease forwards;
}
@keyframes sp-draw { to { stroke-dashoffset: 0; } }

.sp-card.sp-warning .sp-icon {
  background: rgba(255, 193, 7, 0.12);
  border-color: #ffc107;
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.3);
}
.sp-card.sp-warning .sp-icon svg path { stroke: #ffc107; }
.sp-card.sp-warning { border-color: rgba(255, 193, 7, 0.4); }

.sp-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
}
.sp-message {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.5;
  color: #c9dde6;
}

.sp-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  text-align: left;
  font-size: .93rem;
  line-height: 1.45;
  color: #d9f7ff;
  background: rgba(18, 214, 240, 0.09);
  border: 1px solid rgba(18, 214, 240, 0.35);
  border-radius: 12px;
}
.sp-note svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.sp-note svg path, .sp-note svg rect {
  fill: none; stroke: #12d6f0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sp-card.sp-warning .sp-note {
  color: #fff3cd;
  background: rgba(255, 193, 7, 0.09);
  border-color: rgba(255, 193, 7, 0.4);
}
.sp-card.sp-warning .sp-note svg path, .sp-card.sp-warning .sp-note svg rect { stroke: #ffc107; }

.sp-countdown {
  margin: 0 0 16px;
  font-size: .88rem;
  color: #8fb3c1;
}
.sp-btn {
  display: inline-block;
  min-width: 190px;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #04202b;
  background: linear-gradient(135deg, #12d6f0 0%, #1de9b6 100%);
  box-shadow: 0 6px 18px rgba(18, 214, 240, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 214, 240, 0.45); }
.sp-btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 3px; }
.sp-card.sp-warning .sp-btn {
  background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.3);
}

@media (max-width: 480px) {
  .sp-card { padding: 28px 20px 22px; }
  .sp-title { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-overlay, .sp-card { transition: none; }
  .sp-icon svg path { animation: none; stroke-dashoffset: 0; }
}
