/* =======================================================================
   LOGIN.CSS — IX INTERMED PANTANAL (USA VARIÁVEIS DO NAV.CSS)
   ======================================================================= */

/* =======================================================================
   LAYOUT PRINCIPAL
   ======================================================================= */

.content {
  width: 100%;
  min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary-dark);
  padding: var(--spacing-xl);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(255, 237, 0, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(255, 237, 0, 0.04) 0%,
      transparent 45%
    );
  pointer-events: none;
  z-index: 0;
}

.content::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/BACKGROUND/background.avif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: brightness(0.7) blur(3px);
  pointer-events: none;
  z-index: 0;
}

/* =======================================================================
   BOX LOGIN
   ======================================================================= */

.box-login {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  border: 1px solid rgba(255, 237, 0, 0.07);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.box-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 237, 0, 0.35),
    transparent
  );
  border-radius: var(--radius-full);
}

/* =======================================================================
   FORMULÁRIO WRAPPER
   ======================================================================= */

.login-form {
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.login-form h1 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 28px;
  text-align: center;
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =======================================================================
   HIDDEN (TOGGLE)
   ======================================================================= */

.hidden {
  display: none !important;
}

/* =======================================================================
   ÍCONES HEADER
   ======================================================================= */

.box-icones-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.box-icones-content img {
  width: 120px;
  opacity: 0.92;
  transition: var(--transition-fast);
  filter: drop-shadow(0 0 10px rgba(255, 237, 0, 0.15));
}

.box-icones-content img:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(255, 237, 0, 0.28));
}

/* =======================================================================
   FORMULÁRIOS
   ======================================================================= */

#form-login,
#form-recuperar {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#form-login label,
#form-recuperar label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

#form-login input,
#form-recuperar input,
#form-recuperar button,
#form-login button {
  outline: none;
  width: 100%;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-family: var(--font-family);
  background-color: var(--color-primary-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin: 4px 0;
  color: var(--color-white);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

#form-login input:focus,
#form-recuperar input:focus {
  border-color: rgba(255, 237, 0, 0.5);
  background-color: rgba(255, 237, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.08);
}

#form-login input::placeholder,
#form-recuperar input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

/* =======================================================================
   PASSWORD TOGGLE (SVG)
   ======================================================================= */

.box-password {
  position: relative;
}

.box-password input {
  padding-right: 52px;
}

.input-hint {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 3px 0 4px;
  line-height: 1.45;
  font-style: italic;
}

#form-login label svg,
#form-recuperar label svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.7;
  position: relative;
  top: -1px;
}

.toggle-password {
  width: 38px;
  height: 38px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background-color: transparent;
  border: none;
  z-index: 2;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}

.toggle-password:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}

.toggle-password.see-active {
  color: var(--color-yellow);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

/* =======================================================================
   LOAD BOX BOTÕES
   ======================================================================= */

.load-box {
  position: relative;
  margin-top: 22px;
}

#btn-entrar,
#btn-recuperar {
  background: var(--color-yellow) !important;
  color: var(--color-primary-dark) !important;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none !important;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#btn-entrar:hover:not(:disabled),
#btn-recuperar:hover:not(:disabled) {
  background: var(--color-yellow-light) !important;
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px -8px rgba(255, 237, 0, 0.45),
    0 0 0 1px rgba(255, 237, 0, 0.2);
}

#btn-entrar:active:not(:disabled),
#btn-recuperar:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

#btn-entrar:disabled,
#btn-recuperar:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.load-box .loader-spinner {
  left: calc(50% - 15px) !important;
  top: calc(50% - 15px) !important;
}

/* =======================================================================
   LINKS
   ======================================================================= */

.forgot-password,
.voltar-login {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 12px;
}

.forgot-password a,
.voltar-login a {
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 0.77rem;
  transition: var(--transition-fast);
  text-decoration: none !important;
  font-weight: 500;
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  gap: 6px;
}

#show-recuperar svg {
  width: 28px;
}

.forgot-password a:hover,
.voltar-login a:hover {
  color: var(--color-yellow);
}

.voltar-icon {
  display: flex;
  align-items: center;
}

.voltar-icon svg {
  width: 16px;
  height: 16px;
}

/* =======================================================================
   DIVISOR
   ======================================================================= */

.divider {
  display: flex;
  align-items: center;
  margin: 22px 0 18px;
  gap: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.divider span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =======================================================================
   BOX CADASTRAR
   ======================================================================= */

.box-cadastrar {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.box-cadastrar a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 25px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: var(--transition-fast);
  letter-spacing: 0.02em;
}

.box-cadastrar a:hover {
  border-color: rgba(255, 237, 0, 0.35);
  background: rgba(255, 237, 0, 0.04);
  color: var(--color-yellow);
}

.box-cadastrar a svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.box-cadastrar a:hover svg {
  opacity: 1;
}

/* =======================================================================
   ESTADOS DE ERRO
   ======================================================================= */

.input-error,
.input_error {
  border-color: var(--color-error) !important;
  animation: shake 0.4s ease;
  box-shadow: 0 0 0 3px rgba(255, 61, 61, 0.12) !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

/* =======================================================================
   TOAST ACTION BUTTON
   ======================================================================= */

.toast-action-btn {
  border: none;
  padding: 7px 14px;
  background-color: var(--color-yellow);
  color: var(--color-primary-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition-fast);
  display: inline-block;
  font-family: var(--font-family);
}

.toast-action-btn:hover {
  background-color: var(--color-yellow-light);
  transform: translateY(-1px);
}

/* =======================================================================
   RESPONSIVO
   ======================================================================= */

@media only screen and (max-width: 480px) {
  .content {
    padding: var(--spacing-md);
  }

  .box-login {
    border-radius: var(--radius-md);
  }

  .login-form {
    padding: 30px 24px;
  }

  .login-form h1 {
    font-size: 1.25rem;
    margin-bottom: 22px;
  }

  #form-login input,
  #form-recuperar input,
  #form-recuperar button,
  #form-login button {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 360px) {
  .login-form {
    padding: 24px 18px;
  }

  .login-form h1 {
    font-size: 1.15rem;
  }
}
