/* =============================================
   TELA DE BOAS-VINDAS — TOTEM INTERNAÇÃO / HSANP
   Desenvolvido por CSC Group
   Paleta: teal/azul-petróleo
   ============================================= */

/*
  Paleta:
  --teal:         #72c1bd
  --azul-escuro:  #1f5c7e
  --branco-suave: #ecf3f5
  --mint:         #a9d9d7
  --azul-cinza:   #7b9fb3
*/

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #daedf0;
  color: #1f5c7e;
}

/* ── Fundo claro fixo ───────────────────────── */
body {
  background: linear-gradient(160deg, #ecf3f5 0%, #cce6e8 50%, #d8eef0 100%);
}

/* ── Orbs decorativos ───────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb linear infinite;
}

.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(114,193,189,0.35) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 18s;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(31,92,126,0.18) 0%, transparent 70%);
  bottom: 60px; right: -80px;
  animation-duration: 22s;
  animation-delay: -7s;
}

.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(169,217,215,0.30) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-duration: 15s;
  animation-delay: -3s;
}

.orb-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(123,159,179,0.25) 0%, transparent 70%);
  top: 30%; left: 10%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) scale(1); }
  33%       { transform: translateY(-30px) scale(1.05); }
  66%       { transform: translateY(20px) scale(0.97); }
}

/* ── Partículas ─────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: #72c1bd;
  border-radius: 50%;
  animation: floatParticle ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50%       { transform: translateY(-40px) scale(1.3); opacity: 0.5; }
}

/* ── Barra superior ─────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  background: linear-gradient(135deg, #7b9fb3 0%, #1f5c7e 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
  color: rgba(236,243,245,0.85);
  font-weight: 400;
  animation: slideDown 0.7s ease both;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

#horaAtual {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ecf3f5;
  letter-spacing: 1px;
}

/* ── Conteúdo principal ─────────────────────── */
.content {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 40px 80px;
}

/* ── Logo ───────────────────────────────────── */
.logo-wrapper {
  animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s both;
  margin: 12px 0 4px;
}

.logo {
  height: 110px;
  object-fit: contain;
  display: block;
}

/* ── Divisor ────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,92,126,0.35), transparent);
}

.divider-icon {
  font-size: 1rem;
  color: #1f5c7e;
  opacity: 0.45;
}

/* ── Textos de boas-vindas ──────────────────── */
.welcome-text {
  text-align: center;
  animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s both;
}

.sub-welcome {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(31,92,126,0.70);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hospital-name {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  background: linear-gradient(135deg, #ecf3f5 0%, #a9d9d7 50%, #72c1bd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 30px rgba(114,193,189,0.38));
  margin-bottom: 14px;
}

.setor-nome {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: rgba(31,92,126,0.60);
  letter-spacing: 0.5px;
  margin-top: 10px;
}

/* ── Botão CTA ──────────────────────────────── */
.cta-wrapper {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.7s both;
}

.btn-comecar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #7b9fb3 0%, #1f5c7e 100%);
  border: none;
  padding: 26px 56px;
  border-radius: 100px;
  cursor: pointer;
  color: #ecf3f5;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow:
    0 8px 32px rgba(31,92,126,0.55),
    0 2px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: pulseBtn 3s ease-in-out infinite;
  overflow: hidden;
}

.btn-comecar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  pointer-events: none;
}

.btn-comecar:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(31,92,126,0.40);
}

.btn-comecar:hover {
  transform: scale(1.04);
  box-shadow:
    0 14px 48px rgba(114,193,189,0.65),
    0 4px 12px rgba(0,0,0,0.3);
}

@keyframes pulseBtn {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(31,92,126,0.55),
      0 2px 8px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }
  50% {
    box-shadow:
      0 12px 52px rgba(114,193,189,0.70),
      0 2px 8px rgba(0,0,0,0.3),
      0 0 0 14px rgba(114,193,189,0.12),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  border-radius: 50%;
  width: 52px; height: 52px;
  flex-shrink: 0;
}

.btn-text {
  white-space: nowrap;
}

.btn-hint {
  font-size: 0.9rem;
  color: rgba(31,92,126,0.45);
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* ── Rodapé ─────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1f5c7e 0%, #7b9fb3 100%);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: slideUp 0.7s ease both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(236,243,245,0.90);
}

.footer-left strong {
  color: #ecf3f5;
}

.logo-csc {
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  vertical-align: middle;
  display: inline-block;
}

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

/* ── Animação de saída de página ──────────────── */
@keyframes pageExit {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

body.page-exit {
  animation: pageExit 0.45s ease forwards;
  pointer-events: none;
}
