/* Login — dark theme Navegantes */

.login-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: #181818;
  color: #f7f7f7;
  font-family: "Degular Variable", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
  color-scheme: dark;
}

.login-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.7;
  z-index: 0;
}

.login-glow--tl {
  top: -8rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(178, 246, 74, 0.16), transparent 70%);
}

.login-glow--br {
  right: -8rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(178, 246, 74, 0.1), transparent 70%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  display: grid;
  gap: 24px;
  justify-items: center;
}

.login-brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(280px, 80vw);
  object-fit: contain;
}

.login-card {
  width: 100%;
  background: #191919;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(3, 3, 3, 0.45);
  padding: 28px 24px 22px;
}

.login-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #a3a3a3;
}

.login-card__icon {
  display: inline-grid;
  place-items: center;
  color: #b2f64a;
}

.login-card__header h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #a3a3a3;
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field > span {
  font-size: 14px;
  font-weight: 650;
  color: #f7f7f7;
}

.login-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #444444;
  border-radius: 10px;
  background: #1e1e1e;
  color: #f7f7f7;
  padding: 10px 12px;
  font: inherit;
}

.login-field input::placeholder {
  color: #737373;
}

.login-field input:hover {
  border-color: #737373;
}

.login-field input:focus {
  outline: 2px solid rgba(178, 246, 74, 0.35);
  border-color: #b2f64a;
  background: #181818;
}

.login-password {
  position: relative;
}

.login-password input {
  padding-right: 44px;
}

.login-password__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #737373;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.login-password__toggle:hover {
  color: #f7f7f7;
}

.login-error {
  border-radius: 10px;
  background: #7f1d1d;
  color: #fee2e2;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
}

.login-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #b2f64a;
  color: #181818;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.login-submit:hover:not(:disabled) {
  background: #b9f85a;
}

.login-submit:active:not(:disabled) {
  background: #84b43a;
  transform: translateY(1px);
}

.login-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-forgot {
  margin: 0;
  text-align: center;
}

.login-forgot a {
  color: #a3a3a3;
  font-size: 14px;
  text-decoration: none;
}

.login-forgot a:hover {
  color: #b2f64a;
}

.login-help {
  margin: 0;
  text-align: center;
  color: #737373;
  font-size: 12px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .login-submit {
    transition: none;
  }

  .login-submit:active:not(:disabled) {
    transform: none;
  }
}
