@import url('https://fonts.googleapis.com/css2?family=Caveat&display=swap');

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

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fdf6e3 url('/static/usuarios/img/bg_home_1200.webp') repeat-y top center;
  background-size: cover;
  color: #3e3e3e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Container geral */
.senha-wrapper {
  width: 100%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(1px);
  border-left: 5px solid #8ecae6;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

/* Título padrão */
.senha-card h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  color: #1e6091;
  text-align: center;
  margin-bottom: 1rem;
  animation: popIn 0.5s ease;
}

/* Título especial para confirmação de sucesso */
.senha-card h1.success {
  color: #38b000; /* Verde sucesso */
}

/* Texto explicativo */
.slogan {
  font-size: 1rem;
  color: #5e5e5e;
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
}

/* Animação de entrada */
@keyframes popIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Formulário padrão */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Grupos com label */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

/* Inputs */
input[type="email"],
input[type="password"] {
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fffaf0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

input:focus {
  border-color: #1e6091;
  outline: none;
  box-shadow: 0 0 0 2px #cce3f2;
}

/* Mensagens de erro */
.erro {
  color: #ef476f;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* Botão principal */
button[type='submit'] {
  padding: 0.9rem;
  background-color: #ef476f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button[type='submit']:hover {
  background-color: #d43f63;
  transform: scale(1.02);
}

/* Botão secundário / link visual */
.login-voltar,
.login-links {
  margin-top: 2rem;
  text-align: center;
}

.btn-secundario,
.login-links a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  border: 2px solid #1e6091;
  color: #1e6091;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secundario:hover,
.login-links a:hover {
  background-color: #1e6091;
  color: #fff;
}

/* Responsividade extra */
@media (max-width: 480px) {
  .senha-wrapper {
    padding: 1.5rem;
  }

  .senha-card h1 {
    font-size: 2rem;
  }
}
