/* === CABEÇALHO === */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
}

.login-header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

/* === FORMULÁRIOS === */
.login-form {
  display: none;
}

.login-form.active {
  display: block;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
}

input[type='email'],
input[type='password'],
input[type='text'] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #20c997;
  outline: none;
}

/* === BOTÕES === */
.btn {
  width: 100%;
  padding: 12px;
  background-color: #20c997;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #17a589;
  transform: scale(1.02);
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* === ALERTAS === */
.alert {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn-close {
  float: right;
  background: none;
  border: none;
}

/* === LINK DE RECUPERAÇÃO === */
.forgot-password-link {
  text-align: right;
  margin-bottom: 1rem;
}

.forgot-password-link a,
.back-button a {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.forgot-password-link a:hover,
.back-button a:hover {
  text-decoration: underline;
}

/* === TERMOS === */
.terms-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
}

.terms-container a {
  color: #007bff;
  text-decoration: none;
}

.terms-container a:hover {
  text-decoration: underline;
}

/* === RESPONSIVO === */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }
}

/* Centraliza o conteúdo da tela de recuperação e redefinição */
#forgot-password-form,
#reset-password-form {
  text-align: center;
  padding-top: 20px;
}

/* Estilo para o título e descrição */
#forgot-password-form h2,
#reset-password-form h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#forgot-password-form p,
#reset-password-form p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

/* Espaço entre botão e link de voltar */
.back-button {
  margin-top: 24px;
}

.back-button a {
  display: inline-block;
  font-size: 0.95rem;
  color: #007bff;
  text-decoration: none;
}

.back-button a:hover {
  text-decoration: underline;
}

.email-warning-container {
  margin: 20px auto;
  padding: 15px 20px;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
}

.email-warning-message p {
  margin-bottom: 10px;
  font-size: 16px;
}

.email-warning-message .btn-warning {
  background-color: #ffc107;
  border: none;
  color: #212529;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 5px;
}

.btn-green-custom {
  background-color: #28a745;
  color: white;
  font-weight: 500;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-green-custom:hover {
  background-color: #218838;
}

.captcha-wrapper {
  max-width: 100%;
  overflow: hidden; /* 🔥 Esconde qualquer barra de rolagem */
  display: inline-block;
}

.captcha-wrapper .g-recaptcha {
  transform: scale(0.88);
  transform-origin: 0 0;
  width: fit-content; /* 🔥 Reduz a largura lógica também */
}

@media (max-width: 375px) {
  .captcha-wrapper .g-recaptcha {
    transform: scale(0.82);
  }
}

@media (max-width: 320px) {
  .captcha-wrapper .g-recaptcha {
    transform: scale(0.75);
  }
}

.page-container {
  min-height: 50vh; /* altura total da tela */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem; /* espaçamento lateral para telas pequenas */
}

.login-container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
  margin: auto; /* centraliza verticalmente dentro do main com flex */
}
