/* ============================================
   HOTSPOT PORTAL — Design System
   Paleta: Azul elétrico #0057FF · Ciano #00C2FF
   Fundo escuro #080E1A · Superfície #111827
   Texto #F0F4FF · Secundário #8A9BB5
   ============================================ */

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

:root {
  --blue: #0057FF;
  --cyan: #00C2FF;
  --grad: linear-gradient(135deg, #0057FF, #00C2FF);
  --bg: #080E1A;
  --surface: #111827;
  --surface2: #1A2336;
  --border: #1E2D47;
  --text: #F0F4FF;
  --muted: #8A9BB5;
  --danger: #FF4D6A;
  --success: #00D97E;
  --radius: 16px;
  --radius-sm: 10px;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Fundo animado com anéis de sinal ── */
.bg-signal {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden;
}
.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 255, 0.12);
  animation: pulse 6s ease-in-out infinite;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.r1 { width: 300px; height: 300px; animation-delay: 0s; }
.r2 { width: 600px; height: 600px; animation-delay: 2s; }
.r3 { width: 900px; height: 900px; animation-delay: 4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.06; transform: translate(-50%, -50%) scale(1.04); }
}

/* ── Layout ── */
.container {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px;
  gap: 20px;
}

/* ── Header ── */
.portal-header {
  display: flex; align-items: center; gap: 16px;
  text-align: left;
}
.wifi-icon {
  width: 64px; height: 64px;
  background: var(--grad);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(0, 87, 255, 0.4);
}
.portal-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.subtitle { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ── Card principal ── */
.card {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1; padding: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  position: relative;
}
.tab.active { color: var(--text); }
.tab.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.03); }

/* ── Tab content ── */
.tab-content { display: none; padding: 28px; }
.tab-content.active { display: block; }

/* ── Social ── */
.social-label {
  text-align: center; font-size: 13px; color: var(--muted);
  margin-bottom: 12px;
}
.social-buttons { display: flex; gap: 10px; }
.btn-social {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text); font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.btn-social:hover {
  background: #1F2E45; border-color: rgba(0,194,255,.3);
  transform: translateY(-1px);
}

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Formulário ── */
.form-row { margin-bottom: 16px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.form-row.two-col .field { margin-bottom: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 13px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.01em;
}
input[type="text"], input[type="email"],
input[type="password"], input[type="tel"], input[type="date"] {
  width: 100%;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--text); font-size: 15px; font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.12);
}
input::placeholder { color: #3D4F68; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.4); }

.input-eye { position: relative; }
.input-eye input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--muted); line-height: 1; padding: 2px;
}

.field-error {
  font-size: 12px; color: var(--danger);
  min-height: 16px; display: block;
}
input.error { border-color: var(--danger); }

/* ── Termos ── */
.termos-box { margin-bottom: 8px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border); border-radius: 5px;
  background: var(--bg); transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.checkbox-label input:checked + .checkmark {
  background: var(--grad); border-color: transparent;
}
.checkbox-label input:checked + .checkmark::after {
  content: '✓'; color: white; font-size: 11px; font-weight: 700;
}
.checkbox-label a { color: var(--cyan); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* ── Botão principal ── */
.btn-primary {
  width: 100%; margin-top: 20px;
  padding: 14px; border: none; border-radius: var(--radius-sm);
  background: var(--grad); color: white;
  font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 20px rgba(0, 87, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 87, 255, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-loader { display: inline; }
.hidden { display: none !important; }

/* ── Link recuperar ── */
.link-recuperar {
  display: block; text-align: right; margin-top: 8px;
  font-size: 13px; color: var(--cyan); text-decoration: none;
}
.link-recuperar:hover { text-decoration: underline; }

/* ── Sucesso ── */
.sucesso {
  padding: 48px 28px; text-align: center;
}
.sucesso-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: var(--success); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: white;
  box-shadow: 0 0 40px rgba(0, 217, 126, 0.4);
  animation: pop .4s ease;
}
@keyframes pop {
  0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); }
}
.sucesso h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; margin-bottom: 8px;
}
.sucesso p { color: var(--muted); font-size: 14px; }
.sucesso-timer { margin-top: 16px; }
.sucesso-timer strong { color: var(--cyan); }

/* ── Footer ── */
.portal-footer {
  text-align: center; font-size: 12px; color: #3D4F68;
  max-width: 460px; line-height: 1.7;
}
.portal-footer a { color: #5A7099; text-decoration: none; }
.portal-footer a:hover { color: var(--muted); }

/* ── Responsivo ── */
@media (max-width: 480px) {
  .portal-header { flex-direction: column; text-align: center; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .card { border-radius: 12px; }
  .tab-content { padding: 20px; }
}
