@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #0a1e3d;
  --navy-dark:   #060f20;
  --navy-mid:    #122b55;
  --red:         #cc0000;
  --red-bright:  #e60000;
  --red-dark:    #8b0000;
  --gold:        #f5c400;
  --gold-light:  #ffe566;
  --white:       #ffffff;
  --light-blue:  #d6e8ff;
  --card-bg:     rgba(6, 15, 32, 0.88);
  --border-navy: 1.5px solid rgba(100, 160, 255, 0.25);
  --shadow-blue: 0 0 40px rgba(10, 30, 80, 0.4);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Barlow', 'Inter', sans-serif;
  background: linear-gradient(160deg, #060f20 0%, #0a1e3d 50%, #122b55 100%);
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
}

/* ── Animated background particles ── */
.particles { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.particle {
  position:absolute; border-radius:50%;
  animation: floatUp 8s infinite linear;
  opacity:0;
}
.particle:nth-child(1)  { width:5px;  height:5px;  background:#4a90d9; left:10%;  animation-delay:0s;   animation-duration:7s; }
.particle:nth-child(2)  { width:4px;  height:4px;  background:#fff;    left:25%;  animation-delay:1.5s; animation-duration:9s; }
.particle:nth-child(3)  { width:7px;  height:7px;  background:#cc0000; left:40%;  animation-delay:3s;   animation-duration:6s; }
.particle:nth-child(4)  { width:4px;  height:4px;  background:#fff;    left:60%;  animation-delay:0.5s; animation-duration:8s; }
.particle:nth-child(5)  { width:5px;  height:5px;  background:#4a90d9; left:75%;  animation-delay:2s;   animation-duration:7s; }
.particle:nth-child(6)  { width:4px;  height:4px;  background:#cc0000; left:90%;  animation-delay:4s;   animation-duration:9s; }
.particle:nth-child(7)  { width:6px;  height:6px;  background:#fff;    left:55%;  animation-delay:1s;   animation-duration:6s; }
.particle:nth-child(8)  { width:4px;  height:4px;  background:#4a90d9; left:80%;  animation-delay:3.5s; animation-duration:8s; }
.particle:nth-child(9)  { width:5px;  height:5px;  background:#fff;    left:15%;  animation-delay:2.5s; animation-duration:7s; }
.particle:nth-child(10) { width:3px;  height:3px;  background:#cc0000; left:50%;  animation-delay:0.8s; animation-duration:9s; }

@keyframes floatUp {
  0%   { transform:translateY(100vh) rotate(0deg);    opacity:0; }
  10%  { opacity:0.7; }
  90%  { opacity:0.3; }
  100% { transform:translateY(-100px) rotate(720deg); opacity:0; }
}

/* ── Page wrapper ── */
.page-wrapper { position:relative; z-index:1; min-height:100vh; }

/* ══════════════════════════════════════
   SPF PROMO BANNER (top hero)
══════════════════════════════════════ */
.promo-banner-wrap {
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #0a1e3d 0%, #122b55 100%);
  overflow: hidden;
}

/* SPF header bar */
.spf-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 4px solid var(--red);
}
.spf-logo {
  width: 54px; height: 54px;
  flex-shrink: 0;
}
.spf-org-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0a1e3d;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.spf-watermark {
  margin-left: auto;
  opacity: 0.08;
  width: 60px;
}

/* Main announcement block */
.spf-announce {
  padding: 20px 20px 0;
  text-align: center;
}
.spf-announce h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.spf-announce .highlight-red {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  text-shadow: 0 2px 10px rgba(204,0,0,0.5);
}

/* Car scene illustration */
.spf-car-scene {
  width: 100%;
  margin-top: 16px;
  position: relative;
  height: 200px;
  background: linear-gradient(180deg, #1a3a6e 0%, #0a1e3d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spf-car-scene-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Skyline silhouette */
.spf-skyline {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  opacity: 0.25;
}
.spf-building {
  background: #4a90d9;
  border-radius: 2px 2px 0 0;
}
/* Road */
.spf-road {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 30px;
  background: #1a1a2e;
  border-top: 3px solid #f5c400;
}
.spf-road::before {
  content: '';
  position: absolute;
  top: 50%; left: 10%;
  width: 80%; height: 3px;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 30px, transparent 30px, transparent 60px);
  transform: translateY(-50%);
  opacity: 0.3;
}
/* Car SVG in scene */
.spf-car-svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  animation: carFloat 3s ease-in-out infinite;
}
@keyframes carFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* Chop slot banner */
.spf-chop-bar {
  padding: 14px 20px;
  background: var(--white);
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--navy);
  text-align: center;
}
.spf-chop-bar h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Info cards row */
.spf-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
}
.spf-info-col {
  padding: 16px;
  border-right: 1px solid #e0e0e0;
}
.spf-info-col:last-child { border-right: none; }
.spf-info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spf-course-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.spf-course-badge {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spf-course-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy);
  line-height: 1.2;
  text-transform: uppercase;
}
.spf-check-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.3;
}
.spf-check-icon {
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Bottom red bar */
.spf-bottom-bar {
  background: var(--red);
  padding: 12px 20px;
  text-align: center;
}
.spf-bottom-bar p {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SPF footer */
.spf-footer {
  background: var(--navy-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 3px solid var(--red);
}
.spf-footer-logo {
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.spf-footer-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  line-height: 1.3;
}
.spf-footer-text strong {
  color: var(--white);
  display: block;
}
.spf-footer-website {
  margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent 0%, #060f20 100%);
  pointer-events: none;
}

/* ── Login section ── */
.login-section {
  position: relative;
  z-index: 1;
  padding: 0 20px 60px;
  display: flex; flex-direction: column; align-items: center;
}
.login-section .section-label {
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  color: var(--white);
  font-weight:700; font-size:0.78rem; letter-spacing:2px; text-transform:uppercase;
  padding:6px 18px; border-radius:50px;
  margin-bottom:20px;
  box-shadow:0 2px 12px rgba(204,0,0,0.4);
}

/* ── SPF Top Badge ── */
.spf-top-badge {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: rgba(10,30,61,0.6);
  border: 1px solid rgba(204,0,0,0.35);
  border-radius: 16px;
  width: 100%; max-width: 460px;
  animation: fadeSlideUp 0.4s ease both;
  backdrop-filter: blur(8px);
}
.spf-official-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.spf-top-badge-text {
  display: flex; flex-direction: column;
}
.spf-top-badge-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1rem;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.5px;
}
.spf-top-badge-sub {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  font-family: 'Barlow', sans-serif;
}

/* ── SPF Headline ── */
.spf-headline {
  text-align: center; margin-bottom: 20px;
  animation: fadeSlideUp 0.5s ease both;
}
.spf-headline h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.8rem;
  color: var(--white); text-transform: uppercase;
  letter-spacing: 1px; line-height: 1.1;
  margin-bottom: 6px;
}
.spf-subhead {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px;
}
.spf-subhead span {
  color: var(--red-bright);
}

/* ── SPF Bottom Strip ── */
.spf-bottom-strip {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: var(--border-navy);
  border-radius: 20px;
  padding: 36px 32px;
  width:100%; max-width:460px;
  box-shadow: var(--shadow-blue), 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeSlideUp 0.6s ease both;
}
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

.card-icon {
  width:64px; height:64px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  border: 2px solid var(--red);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
  box-shadow: 0 0 24px rgba(204,0,0,0.3);
}
.card-icon svg { width:32px; height:32px; }

.card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 900;
  text-align: center; margin-bottom: 8px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card p.subtitle {
  text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.65);
  margin-bottom: 28px; line-height: 1.6;
}

/* ── Country badge ── */
.country-badge {
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(204,0,0,0.1);
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 50px; padding: 6px 14px;
  font-size: 0.85rem; color: rgba(255,255,255,0.8);
  margin-bottom: 16px; transition: all 0.3s;
}
.country-badge.detected {
  background: rgba(204,0,0,0.18);
  border-color: var(--red);
  color: #ff9999;
}

/* ── Form ── */
.form { display:flex; flex-direction:column; gap:16px; }

.input-group { display:flex; flex-direction:column; gap:6px; }
.input-group label {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.phone-input-wrap {
  display:flex; align-items:center;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(100,160,255,0.2);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.phone-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
}
.phone-prefix {
  padding: 0 14px; font-size: 1.1rem; font-weight: 700;
  color: var(--red); background: rgba(204,0,0,0.08);
  height: 50px; display:flex; align-items:center;
  border-right: 1px solid rgba(204,0,0,0.2);
}
.phone-input-wrap input, .phone-input-wrap input[type="password"] {
  flex:1; background:transparent; border:none; outline:none;
  color:var(--white); font-size:1rem; font-family:'Barlow','Inter',sans-serif;
  padding:0 16px; height:50px;
}
.phone-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }

.pwd-toggle {
  background: transparent; border: none;
  color: rgba(255,255,255,0.5); cursor: pointer;
  padding: 0 14px; display: flex; align-items: center;
  transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--red); }

.input-hint { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ── Buttons ── */
.btn-primary {
  width:100%; padding:15px;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
  background-size:200% auto;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.1rem; letter-spacing: 1px;
  text-transform: uppercase;
  border: none; border-radius: 10px; cursor: pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4);
  position:relative; overflow:hidden;
}
.btn-primary:hover:not(:disabled) {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(204,0,0,0.6);
  transform: translateY(-2px);
}
.btn-primary:disabled { opacity:0.6; cursor:not-allowed; transform:none; }
.btn-primary::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: transparent; border: 1.5px solid rgba(100,160,255,0.3);
  color: rgba(255,255,255,0.7); border-radius:10px;
  padding:12px; width:100%; font-size:0.875rem; cursor:pointer;
  transition: all 0.3s;
  font-family: 'Barlow', sans-serif; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--red); color: #ff9999; }

/* ── Spinner ── */
.spinner {
  width:20px; height:20px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.hidden { display:none !important; }

/* ── Error ── */
.error-msg {
  background: rgba(204,0,0,0.15); border: 1px solid rgba(204,0,0,0.4);
  border-radius: 8px; padding: 10px 14px;
  font-size: 0.85rem; color: #ff9999;
  display: none;
}
.error-msg.visible { display:block; animation:shake 0.4s ease; }
@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%,60%{transform:translateX(-6px)}
  40%,80%{transform:translateX(6px)}
}

/* ── OTP boxes ── */
.otp-boxes {
  display:flex; gap:10px; justify-content:center; margin:8px 0;
}
.otp-box {
  width:52px; height:60px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(100,160,255,0.3);
  border-radius: 10px;
  color: var(--white); font-size: 1.5rem; font-weight: 700;
  text-align: center; outline: none;
  transition: all 0.2s;
}
.otp-box:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.2);
  background: rgba(204,0,0,0.08);
}

/* ── 2FA hidden group ── */
.twofa-group.hidden { display:none; }

/* ── Footer note ── */
.footer-note {
  text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.4);
  margin-top: 18px;
}
.footer-note a { color: var(--red); text-decoration: none; }

/* ── Success page ── */
.success-wrapper {
  min-height: 100vh; display:flex; align-items:center;
  justify-content: center; padding: 40px 20px;
  position:relative; z-index:1;
}
.success-card {
  text-align: center; max-width: 440px; width:100%;
  background: var(--card-bg);
  border: var(--border-navy); border-radius: 20px;
  padding: 48px 32px;
  box-shadow: var(--shadow-blue), 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeSlideUp 0.6s ease both;
}
.success-icon {
  width:90px; height:90px; border-radius:50%;
  background: linear-gradient(135deg, #006600, #00aa00);
  border: 3px solid var(--red);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px rgba(0,180,0,0.3);
  animation: popIn 0.5s 0.3s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
@keyframes popIn {
  from { transform:scale(0); opacity:0; }
  to   { transform:scale(1); opacity:1; }
}
.success-card h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 900; margin-bottom: 12px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.success-card p {
  color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 24px;
}
.prize-badge {
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 10px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(204,0,0,0.3);
}

/* ── Divider ── */
.divider {
  display:flex; align-items:center; gap:12px; margin:20px 0;
  color: rgba(255,255,255,0.3); font-size: 0.78rem;
}
.divider::before, .divider::after {
  content:''; flex:1;
  height:1px; background: rgba(100,160,255,0.2);
}

/* ── Responsive ── */
@media(max-width:480px) {
  .card { padding:28px 20px; }
  .otp-box { width:44px; height:54px; font-size:1.3rem; }
  .spf-announce h1 { font-size: 1.6rem; }
  .spf-announce .highlight-red { font-size: 1.3rem; }
  .spf-chop-bar h2 { font-size: 1.2rem; }
}
