.auth-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 247, 249, 0.96)),
    #f6f7f9;
}

.auth-panel {
  width: min(100%, 420px);
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(23, 32, 42, 0.08);
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-heading h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.auth-heading p {
  margin: 10px 0 0;
  color: #53616f;
  line-height: 1.5;
}

.access-denied-actions {
  display: grid;
  gap: 12px;
}

.access-denied-actions a {
  text-decoration: none;
}

.auth-form,
.recovery-form {
  display: grid;
  gap: 16px;
}

.recovery-form {
  margin-top: 14px;
  border-top: 1px solid #e6ebf2;
  padding-top: 16px;
}

.recovery-form[hidden] {
  display: none;
}

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

.password-fields {
  display: grid;
  gap: 14px;
}

.field-group label {
  color: #2f3b48;
  font-size: 14px;
  font-weight: 700;
}

.field-group input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  padding: 10px 12px;
  color: #17202a;
  background: #ffffff;
}

.password-input-wrap {
  position: relative;
}

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

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.password-toggle-button:focus {
  outline: 3px solid rgba(31, 111, 235, 0.18);
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.field-group input:focus {
  border-color: #1f6feb;
  outline: 3px solid rgba(31, 111, 235, 0.18);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  color: #ffffff;
  background: #175cd3;
}

#login-submit {
  margin-top: 28px;
}

.primary-button .ui-icon {
  filter: brightness(0) invert(1);
}

.secondary-button {
  color: #17324d;
  background: #e9eef6;
}

.secondary-button .ui-icon {
  filter: invert(16%) sepia(25%) saturate(1500%) hue-rotate(171deg) brightness(94%) contrast(92%);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.text-button {
  width: 100%;
  margin-top: 48px;
  border: 0;
  border-top: 1px solid #e6ebf2;
  padding: 20px 0 0;
  color: #175cd3;
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.text-button:focus {
  outline: 3px solid rgba(31, 111, 235, 0.18);
  outline-offset: 4px;
}

.password-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #53616f;
  font-size: 14px;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-rules li::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid #9aa8b6;
  border-radius: 50%;
  background: #ffffff;
}

.password-rules li.is-complete {
  color: #067647;
}

.password-rules li.is-complete::before {
  border-color: #067647;
  background: #067647;
  box-shadow: inset 0 0 0 4px #ffffff;
}

@media (max-width: 480px) {
  .auth-shell {
    align-items: start;
    padding: 20px;
  }

  .auth-panel {
    padding: 22px;
  }
}
