body,
html {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

#login-background {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(22, 111, 99, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(230, 134, 47, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbf8 0%, #f4f7f1 100%);
  overflow: hidden;
}

#login-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 111, 99, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 111, 99, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

#login-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(21, 111, 99, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(230, 134, 47, 0.12), transparent 24%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 0;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.login-logo {
  width: 88px;
  height: 88px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

.login-form {
  background: rgba(7, 20, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 30px;
}

.login-title {
  color: white;
  font-size: 2.5rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.6rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  margin-bottom: 1.4rem;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  color: white;
  margin-bottom: 20px;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.btn-login {
  background: linear-gradient(135deg, #156f63, #209c87);
  border: none;
  border-radius: 14px;
  padding: 0.85rem;
  letter-spacing: 0.04em;
  color: white;
  width: 100%;
  font-weight: bold;
}

.btn-login:hover {
  background: linear-gradient(135deg, #115e54, #1a816f);
  color: white;
}

.alert {
  margin-bottom: 20px;
}

.login-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.login-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 575.98px) {
  #login-background {
    padding: 16px;
  }

  .login-logo {
    width: 74px;
    height: 74px;
    margin-bottom: 0.75rem;
  }

  .login-title {
    font-size: 2.15rem;
  }
}
