/* ═══════════════════════════════════════════════════════════════
   PROJECT AURORA — vincular-paciente.css
   Design System: Liquid Glass & Clinical HealthTech Elegance
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #080A1A;
  --primary-indigo: #6366F1;
  --primary-purple: #8B5CF6;
  --accent-cyan: #6DA6F2;
  --accent-teal: #10B981;
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-secondary: #E2E8F0;
  --sua-fonte-serifada: 'Cormorant Garamond', Georgia, serif;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 20px 16px;
  position: relative;
}

/* ── Aurora Background Effect ───────────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -120px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  top: 25%;
  right: -140px;
  background: radial-gradient(circle, #4F46E5 0%, transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -100px;
  left: 20%;
  background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
  animation-delay: -10s;
  opacity: 0.3;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -35px) scale(1.06); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Liquid Glass Design System ─────────────────────────────── */
.liquid-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Container de inputs do Token (OTP) ─────────────────────── */
.otp-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.otp-prefix {
  font-size: 1.2rem;
  font-weight: bold;
  color: #6366F1;
  letter-spacing: 2px;
  margin-right: 5px;
  font-family: monospace;
}

.otp-input {
  width: 45px;
  height: 55px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  outline: none;
  font-family: monospace;
  text-transform: uppercase;
}

.otp-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.otp-input.error-cell {
  border-color: rgba(239, 68, 68, 0.8) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  60%      { transform: translateX(6px); }
}

/* ── Status de Validação ────────────────────────────────────── */
.validation-status {
  min-height: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.validation-status.success { color: #10B981; }
.validation-status.error   { color: #EF4444; }
.validation-status.checking{ color: #6DA6F2; }

/* ── Card de Ajuda Expansível ───────────────────────────────── */
.help-card {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 25px;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.help-card.visible {
  display: block;
}

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

.help-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #818CF8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-steps {
  padding-left: 20px;
  color: #9CA3AF;
  font-size: 0.88rem;
  line-height: 1.6;
}

.help-steps li {
  margin-bottom: 4px;
}

.help-steps strong {
  color: #FFFFFF;
}

/* ── Toast de Notificação ───────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-wrap.show {
  transform: translateX(-50%) translateY(0);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  color: #F8FAFC;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.success { border-color: #10B981; }
.toast.error { border-color: #EF4444; }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  .otp-wrapper {
    gap: 6px;
  }
  .otp-input {
    width: 38px;
    height: 48px;
    font-size: 1.25rem;
  }
  .otp-prefix {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}
