body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: var(--gradiente-app);
  min-height: 100vh;
  overflow: hidden;
  color: var(--branco);
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

.blur-one {
  width: 320px;
  height: 320px;
  background: rgba(8, 79, 152, 0.55);
  top: 8%;
  left: 12%;
  animation: floatBlur 7s ease-in-out infinite;
}

.blur-two {
  width: 260px;
  height: 260px;
  background: rgba(190, 30, 45, 0.45);
  right: 14%;
  bottom: 10%;
  animation: floatBlur 8s ease-in-out infinite reverse;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  padding: 38px;
  border-radius: 24px;
  background: var(--painel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: blurReveal 0.9s ease forwards;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 24px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.18),
    rgba(8, 79, 152, 0.85),
    rgba(190, 30, 45, 0.85),
    rgba(255, 255, 255, 0.16)
  );
  background-size: 300% 300%;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.login-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(8, 79, 152, 0.28), transparent 70%);
  pointer-events: none;
}

.login-header {
  position: relative;
  z-index: 1;
}

.login-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 79, 152, 0.18);
  border: 1px solid rgba(8, 79, 152, 0.45);
  color: #b9d8ff;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-card h1 {
  margin: 0;
  color: var(--branco);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
}

.login-card p {
  margin: 8px 0 15px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.4px;
}

.login-card form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.4px;
  font-weight: 600;
}

.login-card input {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--branco);
  font-size: 12px;
  font-family: inherit;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 48px;
  box-sizing: border-box;
}

.login-card .password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 30px;
  height: 28px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background 0.2s, filter 0.2s;
}

.login-card .password-toggle:hover {
  transform: translateY(-50%);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
  filter: none;
}

.login-card .password-toggle:focus-visible {
  outline: 2px solid rgba(82, 158, 255, 0.9);
  outline-offset: 2px;
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-card input:focus {
  outline: none;
  border-color: rgba(82, 158, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 4px rgba(8, 79, 152, 0.18),
    0 0 24px rgba(8, 79, 152, 0.25);
}

.login-card button {
  height: 34px;
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  background: var(--gradiente-azul);
  color: var(--branco);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.22s, filter 0.22s;
}

.login-card button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(8, 79, 152, 0.35),
    0 0 24px rgba(8, 79, 152, 0.25);
  filter: brightness(1.08);
}

.login-card button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

#mensagemErro {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  min-height: 20px;
  color: var(--vermelho-suave);
  font-size: 11.2px;
  font-weight: 600;
}

@keyframes blurReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

@keyframes floatBlur {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.08);
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .login-card h1 {
    font-size: 30.4px;
  }
}
