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

/* ====================================================
   Body — fundo navy escuro
   ==================================================== */
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a1628 0%, #0e2040 50%, #112652 100%);
  overflow: hidden;
  position: relative;
}

/* ====================================================
   Foto de fundo — hero-card bem opaca
   ==================================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('https://irmaosmeira.com.br/assets/img/hero-card.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

/* ====================================================
   Canvas de partículas
   ==================================================== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ====================================================
   Card — glassmorphism
   ==================================================== */
.card {
  position: relative;
  z-index: 2;
  width: 420px;
  padding: 44px 40px 36px;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

/* ====================================================
   Logo placeholder
   ==================================================== */
.card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.card__logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* ====================================================
   Título
   ==================================================== */
.card__title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* ====================================================
   Formulário
   ==================================================== */
.card__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  border-color: rgba(99, 179, 237, 0.8);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px rgba(21, 101, 192, 0.85) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

/* ====================================================
   Links
   ==================================================== */
.link {
  color: #90cdf4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover {
  color: #bee3f8;
  text-decoration: underline;
}

.link--small {
  font-size: 12px;
}

/* ====================================================
   Botões
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  width: 100%;
  margin-top: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  box-shadow: 0 4px 18px rgba(13, 71, 161, 0.55);
  letter-spacing: 0.03em;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  box-shadow: 0 6px 22px rgba(25, 118, 210, 0.65);
}

/* ====================================================
   Texto de registro
   ==================================================== */
.card__register {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.card__register .link {
  font-size: 13px;
}

/* ====================================================
   Responsividade — Tablet (≤ 768px)
   ==================================================== */
@media (max-width: 768px) {
  .card {
    width: 90%;
    max-width: 420px;
    padding: 40px 32px 32px;
  }
}

/* ====================================================
   Responsividade — Mobile (≤ 480px)
   ==================================================== */
@media (max-width: 480px) {
  .card {
    width: 92%;
    padding: 32px 24px 28px;
    border-radius: 16px;
  }

  .card__title {
    font-size: 24px;
    margin-bottom: 22px;
  }
}
