main {
  display: grid;
  place-items: center;
  min-height: max(100svh, 380px);
  height: auto;
  padding: 64px 40px;
}

.login {
  width: min(100%, 420px);
  font-family: Arial, Helvetica, sans-serif;
}

.login h1 {
  margin: 0 0 12px 26px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.03em;
}

.login-form {
  display: grid;
  grid-template-rows: 52px 36px minmax(44px, auto);
}

.login-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.credential-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
}

.credential-row input,
.credential-next {
  min-width: 0;
  height: 52px;
  border: 1px solid #454545;
  border-radius: 3px;
  font: inherit;
  font-size: 15px;
}

.credential-row input {
  width: 100%;
  padding: 0 14px;
  color: #fff;
  background: #0a0a0a;
  caret-color: #fff;
}

.credential-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background: #e9e9e9;
  color: #080808;
  cursor: pointer;
}

.credential-next:hover {
  background: #fff;
}

.credential-next:disabled {
  opacity: .45;
  cursor: default;
}

.login :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.login .credential-row input:focus,
.login .credential-row input:focus-visible {
  outline: none;
  box-shadow: none;
}

.login-back {
  grid-row: 2;
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9b9b9;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.login-back:hover {
  color: #fff;
  text-decoration: underline;
}

#login-status {
  grid-row: 3;
  margin: 10px 0 0;
  color: #959595;
  font-size: 12px;
  line-height: 1.5;
}

.login [hidden] {
  display: none;
}

@media (max-width: 420px) {
  .credential-row {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 8px;
  }

  .credential-row input {
    font-size: 16px;
    padding-inline: 10px;
  }
}

/* One shared capsule silhouette: round outer ends, straight inner edges. */
.credential-row input { border-radius:26px 0 0 26px;padding-left:20px; }
.credential-row .credential-next { border-radius:0 26px 26px 0;padding-right:18px; }
.credential-row input::placeholder { color:#93979b;opacity:1; }
