/**
 * Loaded after Django's admin/css/login.css so these rules win.
 * Fixes invisible typed text / labels when dark theme variables darken the login shell.
 */
.login #header {
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.login #header #branding {
  width: 100%;
  justify-content: center;
}

.login #header .uxg-branding__link {
  justify-content: center;
}

.login #content {
  padding-top: 2rem;
}

.login .submit-row input {
  width: 100%;
  padding: 0.65rem 1rem;
}

body.login {
  background: radial-gradient(circle at top right, #352126 0%, #1f1713 48%, #15100d 100%);
}

body.login #container {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(200, 169, 106, 0.3) !important;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

body.login #content {
  background: transparent !important;
  color: #f4ede4;
}

body.login #content-main {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

body.login #login-form {
  background: transparent;
}

body.login .form-row {
  margin-bottom: 1rem;
}

body.login .form-row label {
  color: #f4ede4 !important;
  font-weight: 600;
  font-size: 0.9rem;
}

body.login .form-row label.required::after,
body.login label.required::after {
  color: #6e1e2f;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  color: #1c1714 !important;
  -webkit-text-fill-color: #1c1714;
  caret-color: #1c1714;
  background-color: #ffffff !important;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.55rem 0.65rem;
}

body.login input[type="text"]::placeholder,
body.login input[type="password"]::placeholder,
body.login input[type="email"]::placeholder {
  color: #6f6a64;
  opacity: 1;
}

body.login input:-webkit-autofill,
body.login input:-webkit-autofill:hover,
body.login input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1c1714 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 99999s ease-out;
}

body.login .password-reset-link a {
  color: #6e1e2f;
}

body.login .errornote {
  color: #8b1e1e;
  background: rgba(142, 30, 47, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
