/* Autenticação */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

body { height: 100vh; }

.auth {
  position: relative;
  padding: 0 24px;

  height: calc(100% - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color-light);
}

.auth-logo {
  width: 70%;
  padding: 20px;
}

.auth-form {
  max-width: 500px;
  height: auto;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

/* Campos padrão */
.auth-form input[type="username"],
.auth-form input[type="password"] {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background-color: #f7f7f7;
  font-size: 16px;
  color: var(--primary-color-dark);
}

/* ====== BLOQUEIA OLHO NATIVO DO EDGE/IE ====== */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

/* ====== TOGGLE DE SENHA (FONT AWESOME) ====== */
.password-field{
  position: relative;
  width: 100%;
  margin-bottom: 20px;  /* a margem vem para o wrapper */
}

/* Garante mesmo visual do input e espaço p/ botão */
.password-field input[type="password"],
.password-field input[type="text"]{
  width: 100%;
  margin-bottom: 0;      /* sem margem no input */
  padding: 10px;
  padding-right: 42px;   /* espaço para o botão do "olho" */
  border-radius: 5px;
  border: none;
  background-color: #f7f7f7;
  font-size: 16px;
  color: var(--primary-color-dark);
}

/* Botão do olho centralizado */
.toggle-pass{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;          /* área clicável confortável */
  width: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  line-height: 0;
}

.toggle-pass:hover { color: #333; }
.toggle-pass:focus-visible{
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.login-button {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:hover { background-color: var(--primary-color-dark); }

.auth.loading:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.auth.loading:after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #ccc;
  border-top-color: #005a92;
  border-radius: 50%;
  width: 32px; height: 32px;
  animation: spin 1s linear infinite;
  z-index: 2;
}

header {
  top: 0; left: 0;
  width: 100%;
  background-color: var(--secondary-color-light);
  padding: 10px;
  display: flex;
  align-items: center;
}

header img { max-width: 250px; }
.auth-divider{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 12px 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.12);
}

/* =========================
   BOTÃO GOV.BR
========================= */
.govbr-button{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 5px;

  border: 1.5px solid #16a34a; /* verde */
  background: transparent;
  color: #16a34a;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  cursor: pointer;
   transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.govbr-button:hover{
  background: #16a34a;   /* verde cheio */
  border-color: #16a34a;
  color: #ffffff;
}

.govbr-button:focus-visible{
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}
.boas-festas-inline{
  width: 100%;
  text-align: center;
  margin-top: 10px;

  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
}

.snow-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake{
  position: absolute;
  top: -10px;
  font-size: 14px;
  opacity: 0.85;
  animation-name: snow-fall, snow-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
   color: #0b5ed7; 
}

@keyframes snow-fall{
  to { transform: translateY(105vh); }
}

@keyframes snow-sway{
  0% { margin-left: 0; }
  50% { margin-left: 18px; }
  100% { margin-left: 0; }
}
