.account-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  height: min(100%, var(--account-viewport-height, 100%));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(28px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  background: #000;
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: #555 #000;
  -webkit-overflow-scrolling: touch;
}
.account-card {
  width: 100%;
  max-width: 336px;
  flex: 0 0 auto;
  margin: auto;
}
.account-welcome { max-width: 288px; animation: account-arrive 220ms ease-out both; }
.account-actions { display: grid; gap: 13px; }
.account-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid #fff;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.account-primary { color: #000; background: #fff; }
.account-secondary { color: #fff; background: #000; border-color: #777; }
.account-button:not(:disabled):active { transform: scale(.985); }
.account-primary:not(:disabled):hover { background: #e8e8e8; }
.account-secondary:not(:disabled):hover { background: #151515; border-color: #fff; }
.account-button:disabled { opacity: .48; cursor: default; }
.account-button:focus-visible, .account-back:focus-visible, .account-text-button:focus-visible, .account-password-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.account-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 16px -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c2c2c2;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
}
.account-back span { font-size: 20px; line-height: 1; }
.account-heading {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(27px, 7.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 650;
}
.account-heading:focus { outline: none; }
.account-availability {
  margin: -8px 0 22px;
  color: #c2c2c2;
  font-size: 14px;
  line-height: 1.5;
}
.account-availability[hidden] { display: none; }
.account-google { font-weight: 500; }
.account-google img { flex: 0 0 20px; }
.account-divider { display: flex; align-items: center; gap: 16px; margin: 23px 0; color: #9c9c9c; font-size: 13px; }
.account-divider::before, .account-divider::after { content: ''; height: 1px; flex: 1; background: #333; }
.account-form { display: grid; gap: 20px; }
.account-field { display: grid; gap: 8px; }
.account-field label { color: #e9e9e9; font-size: 14px; font-weight: 500; }
.account-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #606060;
  border-radius: 10px;
  background: #0c0c0c;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  scroll-margin-block: 28px;
}
.account-field input:focus { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; }
.account-field input:disabled { opacity: .5; }
.account-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #151515 inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.account-password-wrap { position: relative; }
.account-password-wrap input { padding-right: 72px; }
.account-password-toggle {
  position: absolute;
  top: 4px;
  right: 5px;
  bottom: 4px;
  min-width: 58px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d5d5d5;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
}
.account-password-toggle:disabled { opacity: .45; cursor: default; }
.account-help { margin: 0; color: #9c9c9c; font-size: 12px; line-height: 1.45; }
.account-feedback { min-height: 20px; margin: 18px 0 0; color: #b5b5b5; font-size: 13px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.account-welcome .account-feedback:empty { min-height: 0; margin: 0; }
.account-feedback.is-error { color: #fff; }
.account-result { text-align: center; }
.account-result .account-heading { margin-bottom: 18px; }
.account-copy { margin: 12px 0; color: #bfbfbf; font-size: 15px; line-height: 1.55; }
.account-email-address { margin: 12px 0; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.account-result .account-actions { margin-top: 28px; }
.account-text-button { min-height: 44px; margin-top: 16px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #bfbfbf; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.account-text-button:disabled, .account-back:disabled { opacity: .5; cursor: default; }
.account-success-icon { width: 48px; height: 48px; margin-bottom: 26px; }
@keyframes account-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (max-height: 600px) {
  .account-screen { padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  .account-back { margin-bottom: 10px; }
  .account-heading { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-welcome { animation: none; }
  .account-button:not(:disabled):active { transform: none; }
}
