/* =========================
   BASE / RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #0B3C5D;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

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

.loginContainer {
  width: min(100%, 380px);
  padding: 10px;
}

.loginCard {
  background: #fff;
  border-radius: 14px;
  padding: 5px 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   HEADER
========================= */

.logoArea {
  text-align: center;
  margin-bottom: 10px;
}

.logoArea img {
  max-width: 120px;
  width: 100%;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  font-size: 26px;
  color: #0B3C5D;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: -0.3px;
}

label {
  font-size: 13px;
  color: #4b5563;
}

/* =========================
   FORM
========================= */

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.formField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =========================
   INPUTS
========================= */

.campo {
  width: 100%;
  padding: 13px 14px;

  border: 1px solid rgba(11, 60, 93, .12);
  border-radius: 14px;

  font-size: 15px;
  outline: none;

  background: #fafbfc;

  transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.campo:focus {
  border-color: #2F7FB8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 127, 184, 0.15);
}

.campo:focus-visible {
  outline: 2px solid #2F7FB8;
  outline-offset: 2px;
}

/* =========================
   SENHA
========================= */

.senhaContainer {
  position: relative;
}

.senhaContainer .campo {
  padding-right: 45px;
}

.btnMostrarSenha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  border: none;
  background: transparent;

  cursor: pointer;
  font-size: 18px;

  opacity: 0.65;
  transition: 0.2s ease;
}

.btnMostrarSenha:hover {
  opacity: 1;
}

.btnMostrarSenha:focus-visible {
  outline: 2px solid #2F7FB8;
  outline-offset: 2px;
}

/* =========================
   OPTIONS
========================= */

.opcoesLogin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lembrarMe {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.lembrarMe input {
  cursor: pointer;
  accent-color: #2F7FB8;
}

.linkRecuperacao {
  background: none;
  border: none;

  color: #2F7FB8;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s ease;
}

.linkRecuperacao:hover {
  color: #0B3C5D;
  text-decoration: underline;
}

/* =========================
   BUTTON
========================= */

.btnPrimario {
  background: #0B3C5D;
  color: #fff;

  border: none;
  margin-top: 20px;
  padding: 13px 18px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 15px;
  font-weight: 600;

  box-shadow: 0 6px 14px rgba(11, 60, 93, 0.25);

  transition: background 0.2s ease, transform 0.1s ease;
}

.btnPrimario:hover {
  background: #2F7FB8;
}

.btnPrimario:active {
  transform: translateY(1px);
}

.btnPrimario:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btnPrimario:focus-visible {
  outline: 2px solid #2F7FB8;
  outline-offset: 2px;
}

/* =========================
   FEEDBACK
========================= */

#erro {
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
  min-height: 24px;

  font-size: 14px;
  font-weight: 500;

  color: #dc2626;
}

/* =========================
   FOOTER
========================= */

.versaoSistema {
  text-align: center;
  margin-top: 0;

  font-size: 12px;
  color: #9ca3af;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 480px) {
  .loginCard {
    padding: 24px 18px;
  }

  h1 {
    font-size: 22px;
  }

  .opcoesLogin {
    flex-direction: column;
    align-items: flex-start;
  }

  .btnPrimario {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .loginCard {
    padding: 18px 14px;
  }

  h1 {
    font-size: 20px;
  }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}