/* Sign-in, OTP, master-password screens. */

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 96px 22px 48px;
}

.auth-card {
  width: min(468px, 100%);
  padding: 34px;
  animation: rise var(--t-slow) var(--ease-out) both;
}

.auth-card > .brand {
  margin-bottom: 26px;
}

.auth-card h1 {
  font-size: 29px;
  margin: 12px 0 6px;
}

.auth-card > .muted {
  margin: 0 0 22px;
  font-size: 14.5px;
}

.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-card .notice {
  margin-top: 20px;
}

.auth-top {
  position: absolute;
  top: 24px;
  left: clamp(22px, 5vw, 64px);
  right: clamp(22px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Google mark keeps its own colours against both themes. */
.gbtn svg {
  width: 18px;
  height: 18px;
}

.phone-row {
  display: flex;
  gap: 9px;
}

.phone-row select {
  width: 128px;
  flex: none;
}

/* reCAPTCHA renders a fixed-size iframe; centre it and give it breathing room. */
#recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
  min-height: 0;
}

#recaptcha-container:empty {
  margin: 0;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--primary-2);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color var(--t-fast) var(--ease);
}

.link-btn:hover:not(:disabled) {
  color: var(--primary);
  text-decoration: underline;
}

.link-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

.auth-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 18px 0 0;
}

/* Requirement checklist under the master password field. */
.reqs {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}

.reqs li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast) var(--ease);
}

.reqs li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: all var(--t-fast) var(--ease);
}

.reqs li.met {
  color: var(--success);
}

.reqs li.met::before {
  background: var(--success);
  border-color: var(--success);
  box-shadow: inset 0 0 0 2px var(--surface);
}
