/* ======= RESET MODERNO ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f5f6f8;
}

body {
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======= CONTAINER PRINCIPAL ======= */
.container {
  background: #fff;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.5s ease;
}

.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-img {
  max-width: 120px;
  height: auto;
}

/* ======= FORMULÁRIOS ======= */
form h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Toggle senha */
.toggle-password {
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1rem;
}

/* ======= BOTÃO ======= */
.btn {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #fff;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #1e4ed8;
}

/* Links extras */
.links {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.links a {
  color: #2563eb;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* ======= MENSAGENS DE ERRO ======= */
.erro-mensagem {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ======= SPLASH SCREEN ======= */
.splash {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.splash-content {
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.splash-logo {
  width: 100px;
  margin-bottom: 1rem;
}

.loader {
  margin-top: 1rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
}

/* ======= ANIMAÇÕES ======= */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ======= RESPONSIVIDADE ======= */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .logo-img {
    max-width: 90px;
  }

  form h2 {
    font-size: 1.4rem;
  }
}
