/* =========================================================
   Lux Neon Art Gallery — Captive Portal
   Mobile-first. Pure CSS. No framework.
   ========================================================= */

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

/* ── Variables ── */
:root {
  --gold:        #b8956a;
  --gold-light:  #d4af81;
  --gold-dark:   #8c6a3f;
  --navy:        #0a0e1a;
  --card:        #111520;
  --card-border: rgba(184, 149, 106, 0.25);
  --text:        #e8e4de;
  --text-muted:  #8a8a9a;
  --error:       #e05050;
  --neon-cyan:   #00e5ff;
  --neon-glow:   0 0 8px #00e5ff, 0 0 20px rgba(0, 229, 255, 0.4);
  --radius:      16px;
  --transition:  0.25s ease;
}

/* ── Body ── */
html, body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(184, 149, 106, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
}

/* ── Card Container ── */
.container {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(184, 149, 106, 0.15);
  position: relative;
  overflow: hidden;
}

/* subtle shimmer top edge */
.container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

/* ── Logo ── */
.logo-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(184, 149, 106, 0.4));
}

/* ── Heading ── */
.heading {
  text-align: center;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 4px;
}

.neon {
  color: var(--neon-cyan);
  text-shadow: var(--neon-glow);
  font-weight: 500;
}

.subheading {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.8;
}

/* ── Step Dots ── */
.steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184, 149, 106, 0.25);
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ── Form Fields ── */
.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(184, 149, 106, 0.3);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder { color: var(--text-muted); }

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.18);
}

input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(224, 80, 80, 0.15);
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  min-height: 16px;
}

/* ── Primary Button ── */
.btn-primary {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a1000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 149, 106, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(26, 16, 0, 0.3);
  border-top-color: #1a1000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.btn-spinner.visible { display: block; }

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

/* ── Terms ── */
.terms {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.terms a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 149, 106, 0.35);
}

.terms a:hover { border-bottom-color: var(--gold); }

/* ── Instagram Step ── */
.ig-badge {
  text-align: center;
  font-size: 52px;
  margin-bottom: 12px;
  line-height: 1;
}

.ig-title {
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 6px;
}

.ig-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #405de6, #833ab4, #e1306c);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 20px;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(131, 58, 180, 0.45);
}

.btn-instagram:active { transform: translateY(0); }

.ig-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Countdown ── */
.countdown-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.countdown {
  text-align: center;
  font-size: 52px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 16px;
  min-height: 56px;
  transition: color var(--transition);
}

.countdown.ready {
  color: var(--neon-cyan);
  text-shadow: var(--neon-glow);
}

.skip-link {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
}

.skip-link a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 138, 154, 0.3);
  transition: color var(--transition);
}

.skip-link a:hover { color: var(--text); }

/* ── Success Step ── */
.success-icon {
  text-align: center;
  font-size: 64px;
  margin-bottom: 16px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.success-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ── Error Banner ── */
.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(224, 80, 80, 0.12);
  border: 1px solid rgba(224, 80, 80, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 14px;
  color: #f08080;
  animation: slideIn 0.3s ease;
}

.error-close {
  background: none;
  border: none;
  color: #f08080;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 2px;
  line-height: 1;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Utility ── */
.hidden { display: none !important; }

section { animation: fadeUp 0.35s ease; }

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

/* ── Responsive ── */
@media (max-width: 380px) {
  body { padding: 12px 10px 32px; }
  .container { padding: 24px 18px 22px; }
  .heading { font-size: 22px; }
  .countdown { font-size: 42px; }
}
