.login-page {
  color: #fff9eb;
}

.login-page .page-background {
  object-fit: cover;
  opacity: 0.9;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 56px) 20px;
}

.login-card {
  width: min(100%, 500px);
  margin: 0;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(219, 171, 58, 0.72);
  border-top: 1px solid rgba(219, 171, 58, 0.72);
  border-radius: 16px;
  background: rgba(9, 14, 16, 0.9);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.login-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 28px;
}

.login-brand {
  margin: 0;
  color: #fff9eb;
  font: 800 clamp(1.55rem, 5vw, 2.15rem) Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.login-lab-badge {
  padding: 6px 10px;
  border: 1px solid #dbab3a;
  border-radius: 7px;
  color: #ffd267;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.login-card .eyebrow {
  margin-bottom: 9px;
  color: #ffd267;
  letter-spacing: 0.12em;
}

.login-card h1 {
  color: #fff9eb;
  font: 800 clamp(2rem, 6vw, 3rem) Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.login-intro {
  margin: 12px 0 28px;
  color: rgba(255, 249, 235, 0.76);
  line-height: 1.5;
}

.text-button {
  background: transparent;
  color: #f2c85b;
  border: 0;
  box-shadow: none;
  padding: 2px 0;
  justify-self: center;
  text-decoration: underline;
}

.text-button:hover,
.text-button:focus-visible {
  color: #fff9eb;
  background: transparent;
}

.back-button {
  justify-self: start;
  text-decoration: none;
}

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

.landing-actions {
  margin-top: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.button-link.secondary {
  border: 1px solid var(--line);
  background: var(--blue-surface-strong);
  color: var(--primary-dark);
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #ffd267;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  border: 1px solid rgba(219, 171, 58, 0.42);
  border-radius: 9px;
  padding: 0 14px;
  background: rgba(5, 9, 10, 0.82);
  color: #fff9eb;
  caret-color: #ffd267;
}

.login-form input::placeholder {
  color: rgba(255, 249, 235, 0.42);
}

.login-form input:focus {
  border-color: #4fbf9b;
  outline: 3px solid rgba(79, 191, 155, 0.22);
  outline-offset: 2px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 249, 235, 0.72);
  font-size: 1.1rem;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: transparent;
  color: #ffd267;
}

.login-form > button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #edc65d;
  border-radius: 9px;
  background: linear-gradient(135deg, #f4c653, #d99c27);
  color: #17120a;
  box-shadow: 0 8px 20px rgba(217, 156, 39, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-form > button[type="submit"]:hover,
.login-form > button[type="submit"]:focus-visible {
  background: linear-gradient(135deg, #ffd970, #e5ad36);
}

.login-message {
  min-height: 1.4em;
  margin: 16px 0 0;
  font-weight: 700;
}

.login-message.error {
  color: #ff9c88;
}

.login-message.success {
  color: #78d9b2;
}

.login-help-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.login-form > .text-button:last-child {
  margin-top: 2px;
}

@media (max-width: 560px) {
  .login-shell {
    align-items: start;
    padding-top: 28px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .login-brand-row {
    margin-bottom: 24px;
  }
}
