/* === RESET & TEMA BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: auto;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #1c1b1a, #504c4a);
  color: #f5f5f5;
  min-height: 100svh;
}

/* Páginas centradas (login, criar senha, senha, perfil) */
body.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

/* Dashboard ocupa a altura toda em coluna (sem “faixa” no rodapé) */
body.with-layout {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
/* Splashscreen */
#splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1c1b1a, #504c4a);
  z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#splash.hide {
  opacity: 0;
  visibility: hidden;
}

.splash-card {
  background: #2e2c2b;
  padding: 28px 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 260px;
}

.splash-card img {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.splash-card p {
  margin: 12px 0 10px;
  color: #d1d5db;
  font-size: 14px;
}
/* Spinner */
.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #d4af37; /* dourado */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* CARTÃO BASE (auth forms) */
.card {
  background: #2e2c2b;
  padding: 30px 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px; /* um pouco maior para mobile ficar confortável */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.card h2 {
  margin-bottom: 10px;
  color: #f5f5f5;
}
.card p {
  font-size: 14px;
  color: #d1d5db;
  margin: 15px 0px;
}

label {
  display: block;
  text-align: left;
  margin: 12px 0 6px;
  font-size: 14px;
  color: #f5f5f5;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #504c4a;
  border-radius: 6px;
  background: #1f1e1d;
  color: #f5f5f5;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

button,
a.btn {
  display: inline-block;
  padding: 12px 14px;
  background: #504c4a;
  border: none;
  border-radius: 6px;
  color: #f5f5f5;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
button:hover,
a.btn:hover {
  background: #d4af37;
  color: #1c1b1a;
  transform: scale(1.02);
}
button:disabled {
  background: #a1a1a1;
  cursor: not-allowed;
}

.erro {
  color: #f87171;
  font-size: 14px;
  margin-bottom: 10px;
}
.sucesso {
  color: #4ade80;
  font-size: 14px;
  margin-bottom: 10px;
}

.logo {
  max-width: 160px;
  height: auto;
  margin: 0 auto 15px;
  display: block;
}

/* ajuda geral */
.hidden {
  display: none !important;
}

/* Mobile: deixar o card ainda mais confortável */
@media (max-width: 480px) {
  .card {
    max-width: 92vw;
    padding: 26px 20px;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    font-size: 16px;
  }
}
