/* ================================
   JORNADA APP — ESTILOS GLOBAIS
   Paleta: Ouro Quente + Escuro
================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Nunito:wght@300;400;500;600&display=swap');

/* --- VARIÁVEIS DE COR --- */
:root {
  --ouro-claro: #E8C97A;
  --ouro: #ECA815;
  --ouro-medio: #CA9012;
  --ouro-escuro: #BA933D;
  --ouro-fundo: #A8780F;
  --marrom1: #86600C;
  --marrom2: #644709;
  --escuro1: #261D0C;
  --escuro2: #1A1208;
  --escuro3: #0E0A07;
  --branco: #FFFFFF;
  --texto-muted: rgba(236, 168, 21, 0.55);
  --borda: rgba(202, 144, 18, 0.22);
  --borda-forte: rgba(202, 144, 18, 0.45);
}

/* --- RESET E BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--escuro3);
  font-family: 'Nunito', sans-serif;
  color: var(--branco);
  overflow: hidden;
}

/* --- SISTEMA DE TELAS --- */
.tela {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow-y: auto;
}

.tela.ativa {
  display: flex;
  flex-direction: column;
}

/* ================================
   TELA DE SPLASH
================================ */
.splash-bg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(202, 144, 18, 0.13) 0%, transparent 65%),
    var(--escuro3);
  min-height: 100vh;
}

.cruz-icone {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
}

.cruz-icone.pequena {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.app-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--ouro-claro);
  letter-spacing: 0.14em;
  line-height: 1;
}

.app-subtitulo {
  font-size: 11px;
  font-weight: 500;
  color: var(--texto-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 8px;
}

.divisor-ouro {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ouro), transparent);
  margin: 32px auto;
}

.splash-verso {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: rgba(236, 168, 21, 0.75);
  line-height: 1.65;
  max-width: 300px;
}

.splash-referencia {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ouro);
  letter-spacing: 0.16em;
  margin-top: 12px;
}

/* --- BOTÕES --- */
.btn-primario {
  width: 100%;
  max-width: 340px;
  padding: 17px;
  background: linear-gradient(135deg, var(--ouro-medio), var(--ouro));
  color: var(--escuro3);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 40px;
  transition: opacity 0.2s;
}

.btn-primario:active {
  opacity: 0.85;
}

.btn-fantasma {
  width: 100%;
  max-width: 340px;
  padding: 15px;
  background: transparent;
  color: var(--ouro);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--borda-forte);
  border-radius: 14px;
  cursor: pointer;
  margin-top: 12px;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.btn-fantasma:active {
  background: rgba(202, 144, 18, 0.08);
}

/* ================================
   TELA DE LOGIN
================================ */
.login-bg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 40px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(202, 144, 18, 0.1) 0%, transparent 60%),
    var(--escuro3);
  min-height: 100vh;
}

.btn-voltar {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--ouro);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
}

.login-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--ouro-claro);
  text-align: center;
}

.login-subtitulo {
  font-size: 13px;
  color: var(--texto-muted);
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* --- BOTÃO GOOGLE --- */
.btn-google {
  width: 100%;
  max-width: 340px;
  padding: 15px;
  background: var(--escuro2);
  color: var(--branco);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--borda-forte);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-google:active {
  background: var(--escuro1);
}

/* --- SEPARADOR --- */
.separador {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.separador::before,
.separador::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--borda);
}

.separador span {
  font-size: 12px;
  color: var(--texto-muted);
  font-weight: 500;
}

/* --- CAMPOS DE FORMULÁRIO --- */
.campo-grupo {
  width: 100%;
  max-width: 340px;
  margin-bottom: 16px;
}

.campo-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ouro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.campo-input {
  width: 100%;
  padding: 15px 16px;
  background: var(--escuro2);
  border: 1px solid var(--borda);
  border-radius: 12px;
  color: var(--branco);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.campo-input::placeholder {
  color: var(--texto-muted);
}

.campo-input:focus {
  border-color: var(--ouro-medio);
}

.esqueci-senha {
  font-size: 12px;
  color: var(--ouro);
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================
   CORREÇÕES GLOBAIS
================================ */

/* --- NAVEGAÇÃO INFERIOR --- */
.nav-inferior {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-around !important;
  width: 100% !important;
  padding: 0 10px 20px !important;
}

.nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  gap: 4px !important;
}

/* --- BOTÃO PRIMÁRIO CENTRALIZADO --- */
.btn-primario {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}