/* ================================================
       Reset
       ================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================================
       FUNDO VERDE
       ================================================ */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a2e1a;
  font-family: "DM Sans", sans-serif;
  overflow-y: auto;
  position: relative;
  
}

/* ── Blobs de luz ── */
body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 105, 56, 0.22) 0%,
    transparent 70%
  );
  top: -180px;
  right: -120px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 89, 56, 0.55) 0%,
    transparent 70%
  );
  bottom: -150px;
  left: -120px;
  pointer-events: none;
  z-index: 0;
}

/* ================================================
      DESENHOS DE FUNDO
      ================================================ */

/* ── Grade de pontos ── */
.bg-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.048) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ── Anéis decorativos ── */
.bg-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-ring--lg {
  width: 420px;
  height: 420px;
  border: 1.5px solid rgba(255, 105, 56, 0.13);
  top: -110px;
  right: -90px;
}

.bg-ring--sm {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 105, 56, 0.08);
  top: -30px;
  right: -20px;
}

/* ── Blob laranja inferior direito ── */
.bg-blob-br {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 105, 56, 0.07);
  filter: blur(55px);
  bottom: 30px;
  right: 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Linha diagonal decorativa ── */
.bg-diag {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 4px;
  transform: rotate(15deg);
}

.bg-diag--1 {
  width: 3px;
  height: 340px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 105, 56, 0.4),
    transparent
  );
  top: 60px;
  right: 140px;
}

.bg-diag--2 {
  width: 1.5px;
  height: 220px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  top: 100px;
  right: 165px;
}


/* ================================================
       CONTAINER PRINCIPAL
       ================================================ */

.main-wrapper {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-container {
  position: relative;
  z-index: 2;
  width: clamp(320px, 30vw, 420px);
  height: clamp(500px, 90vh, 650px);;
  background: rgba(255, 255, 255, 0.975);
  border-radius: 22px;
  padding:
        clamp(20px, 8vh, 64px)
        clamp(24px, 5vw, 46px)
        0;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.07);

  /* Animação de entrada */
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow-y: auto;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* -- Botão voltar -- */
#btn-voltar{
  position: absolute;
  left:15px;
  top: 20px;
  border: none;
  padding: 3px;
  background: none;
  display:none;
}

#btn-voltar:hover{
  border: 1.5px solid #e4e4e4;
  border-radius: 4px;

}

#btn-voltar i{
  font-size: 24px;
  color:#135938;
}


/* ================================================
       CONTAINER LOGIN
       ================================================ */

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.login-logo{
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-logo img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-faixa {
  display: inline-block;
  background: rgba(19, 89, 56, 0.08);
  border: 1px solid rgba(19, 89, 56, 0.16);
  color: #1a6b3e;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 400;
}

/* - Toast mensagens - */

/* - Toast mensagens - */

.toast-login {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 999;

  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 28px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid;

  width: max-content;
  max-width: min(90vw, 380px);

  animation: toastIn .25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 40px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.toast-login.toast-saindo {
  animation: toastOut .25s ease forwards;
}

@keyframes toastOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to   { opacity: 0; transform: translate(-50%, 40px); }
}

.toast-login button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: inherit;
  opacity: .6;
  padding: 0;
}
.toast-login button:hover { opacity: 1; }

/* Variantes — adapte às suas variáveis Bootstrap ou CSS custom */
.toast-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.toast-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.toast-danger  { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.toast-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }

/* ── Campos de formulário ── */
.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group-cadastro{
  position: relative;
}

.input-group input, .input-group-cadastro input{
  width: 100%;
  height: 48px;
  border: 1.5px solid #e4e4e4;
  border-radius: 11px;
  padding: 0 48px 0 16px;
  font-size: 14.5px;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fafafa;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.input-group input::placeholder, .input-group-cadastro::placeholder {
  color: #b0b0b0;
  font-weight: 300;
}

.input-group input:focus, .input-group-cadastro input:focus {
  border-color: #135938;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(19, 89, 56, 0.09);
}

.input-group .input-icon, .input-group-cadastro .input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #c8c8c8;
  font-size: 17px;
  pointer-events: none;
  transition: color 0.2s;
}

.input-group input:focus ~ .input-icon, 
.input-group-cadastro input:focus ~ .input-icon{
  color: #135938;
}


/* ── Botões Formulário ── */
.btn-formulario {
  width: 100%;
  height: 50px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #ff7e31 0%, #e62c03 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.4px;
  cursor: pointer;
  margin-top: 6px;
  transition:
    opacity 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(230, 44, 3, 0.28);
  margin-bottom: 16px;
}

.btn-formulario:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(230, 44, 3, 0.38);
}

.btn-formulario:active {
  transform: translateY(0);
  opacity: 1;
}

.erro-login{
  text-align: center;
}

/* ── Links auxiliares ── */
.login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #abababd2;
}

.login-links div {
  display: flex;
  gap: 4px;
}

.login-links button {
  color: #135938;
  font-weight: 500;
  transition: color 0.15s;
  border: none;
  background: none;
}

.login-links button:hover {
  color: #1a7a47;
  cursor: pointer;
}

/* ── Rodapé do card ── */
.login-footer {
  margin-top: clamp(12px, 7vh, 60px);
  padding-top: clamp(10px, 2.5vh, 20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-label {
  font-size: 10px;
  color: #abababd2;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-contatos {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: #9a9a9a;
  font-weight: 300;
}

.footer-contatos a {
  color: #1a7a47;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.footer-contatos a:hover {
  color: #135938;
}

.footer-contatos .contato-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================================================
       CONTAINER CADASTRO
       ================================================ */

.form-cadastro-titulo,
.form-red-senha-titulo{
  display:flex;
  justify-content: center;
  color: #15683b;
  margin-bottom: 24px;
}

.container-select{
  display: flex;
  gap: 12px;
  width: 100%;
}

.select-cadastro{
  padding:12px;
  background:none;
  border: 1.5px solid #e4e4e4;
  border-radius: 11px;
}

#select-cidade{
  display: flex;
  flex-direction: column;
  flex: 7;
}

#select-estado{
  display: flex;
  flex-direction: column;
  flex: 3;
}

#btn-esconder-senha{
  display: none;
}

#btn-esconder-confirmacao-senha{
  display: none;
}

.mensagem-erro{
  color: red;
  font-size:12px;
  margin:4px 0 0;
  min-height:18px;
  visibility: hidden;
}

.aviso-username-cadastro{
  background: #2A52D4;
  background: radial-gradient(circle, rgba(42, 82, 212, 1) 50%, rgba(95, 122, 212, 1) 100%);
  font-size: 12px;
  border-radius: 4px;
  padding: 8px;
}

.aviso-username-cadastro-observacao{
  color: white;
  text-align:center;
}

#btn-continuar-cadastro, #btn-cadastro{
  margin-top: 12px;
}

.senha-cadastro-wrapper {
  position: relative;
}

.senha-cadastro-wrapper button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
}


/* ================================================
       STATUS E PRIVACIDADE
       ================================================ */

.rodape {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  transform: translateY(30%);
}

.politica-privacidade {
  grid-column: 2;
  justify-self: center;
}

.status-pagina {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 1vw;
}

.politica-privacidade a{
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.politica-privacidade:hover {
  color: rgba(255, 255, 255, 0.45);
}

.status-ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d476;
  box-shadow: 0 0 0 3px rgba(37, 212, 118, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(37, 212, 118, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(37, 212, 118, 0.06);
  }
}

.status-texto{
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.4px;
}



/* ================================================
       RESPONSIVO
       ================================================ */
@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 28px 16px 80px;
    overflow-y: auto;
  }

  .main-container {
    width: 100%;
    padding: 36px 28px 30px;
    border-radius: 18px;
  }

  .btn-formulario {
    height: 46px;
    font-size: 14px;
  }

  .bg-ring--lg {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -50px;
  }
  .bg-ring--sm {
    display: none;
  }
  .bg-diag--1,
  .bg-diag--2 {
    display: none;
  }
  .bg-leaf {
    width: 70px;
  }

  /* - Toast mensagens - */

  .toast-login {
    padding: 8px 12px;
    font-size: 12px;
    bottom: 16px;
    max-width: 92vw;
  }

  .login-footer{
    margin-top: clamp(12px, 3vh, 60px);
    padding-top: clamp(10px, 2.5vh, 20px);
  }
  .rodape {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .status-pagina {
    position: static;
    margin: 0;
  }
  
  
}