/* Phone-input + login utilities (theme deferred CSS is bundled via index.tsx). */
.anbit-phone-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  padding: 0 12px;
  overflow: hidden;
}

.anbit-phone-input:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
}

.anbit-phone-input .PhoneInputCountry {
  margin-right: 0;
  flex-shrink: 0;
}

.anbit-phone-input .PhoneInputCountryIcon {
  width: 22px;
  height: 16px;
  border: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.anbit-phone-input .PhoneInputCountrySelect {
  background: #121212;
  color: #ffffff;
  border: 0;
  outline: none;
  border-radius: 6px;
  padding: 6px 4px;
  max-width: 32px;
}

.anbit-phone-input .PhoneInputCountrySelect option {
  background: #121212;
  color: #ffffff;
}

.anbit-phone-input__field {
  height: 100%;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  outline: none;
}

.anbit-phone-input__field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Login / compact — scales with viewport height (see login-screen block below) */
.anbit-phone-input.anbit-phone-input--compact-login {
  border-radius: 12px;
}

@media (min-width: 640px) {
  .anbit-phone-input {
    height: 56px;
    border-radius: 14px;
  }
}

/* Login copy — explicit colors (avoid global light-mode text-white → black override) */
.login-screen {
  color: #ffffff;
}

.login-screen-copy,
.login-heading-logo,
.login-screen .login-hero-copy {
  color: #ffffff;
}

.login-screen-copy-muted {
  color: rgba(255, 255, 255, 0.6);
}

.login-screen-copy-soft {
  color: rgba(255, 255, 255, 0.7);
}

.login-screen-copy-guest,
button.login-screen-copy-guest {
  color: #ffffff !important;
}

.login-screen-copy-divider {
  color: rgba(255, 255, 255, 0.5);
}

.login-screen-copy-faint {
  color: rgba(255, 255, 255, 0.35);
}

.login-screen-copy-faint:hover {
  color: rgba(255, 255, 255, 0.65);
}

.login-screen-link {
  color: #d6afff;
  font-weight: 700;
}

.login-screen-link:hover {
  color: #e9d5ff;
}

.login-screen-footer-link {
  color: #d6afff !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-screen-footer-link:hover {
  color: #e9d5ff !important;
}

.login-screen__input {
  color: #ffffff !important;
}

.login-screen__input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="light"] .login-screen .login-screen__input,
[data-theme="light"] .login-screen .login-screen__input:focus {
  color: #ffffff !important;
}

/* Login screen — scrollable form + compact layout on short viewports */
.login-screen__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-top: clamp(0.2rem, 0.75dvh, 0.5rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.login-screen__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.login-screen__panel {
  min-height: 100%;
  padding-top: 0;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

.login-screen__heading {
  margin-top: 0;
  margin-bottom: clamp(0.35rem, 1.25dvh, 0.75rem);
  padding-top: clamp(0.15rem, 0.5dvh, 0.35rem);
  overflow: visible;
}

.login-heading-logo {
  font-size: clamp(2.5rem, 8.5dvh, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow: visible;
  padding-top: 0.06em;
}

.login-screen__tagline {
  margin-top: clamp(0.1rem, 0.4dvh, 0.3rem);
  font-size: clamp(0.8rem, 1.8dvh, 1.15rem);
}

.login-screen__block {
  margin-bottom: clamp(0.3rem, 1dvh, 0.65rem);
}

.login-form-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 1.2dvh, 0.55rem);
}

.login-screen__input,
.login-screen__btn {
  padding-top: clamp(0.45rem, 1.2dvh, 0.75rem);
  padding-bottom: clamp(0.45rem, 1.2dvh, 0.75rem);
}

.login-screen__divider {
  margin: clamp(0.05rem, 0.4dvh, 0.2rem) 0;
}

.login-screen__footer {
  margin-top: clamp(0.5rem, 1.5dvh, 1rem);
  padding-top: clamp(0.35rem, 1dvh, 0.75rem);
}

.login-google-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  overflow: visible;
}

.login-google-wrap > div {
  display: flex !important;
  width: 100% !important;
  max-width: 100%;
  justify-content: center;
}

.login-google-wrap iframe {
  display: block;
  max-width: 100% !important;
}

.anbit-phone-input.anbit-phone-input--compact-login {
  height: clamp(2.35rem, 5.5dvh, 3.15rem);
}

@media (max-height: 820px) {
  .login-screen .login-hero-mount {
    height: clamp(3.75rem, 14dvh, 7rem) !important;
  }

  .login-heading-logo {
    font-size: clamp(2rem, 6.5dvh, 3.25rem);
  }

  .login-screen__tagline {
    font-size: clamp(0.75rem, 1.6dvh, 1rem);
  }
}

@media (max-height: 680px) {
  .login-screen .login-hero-mount {
    height: clamp(3rem, 11dvh, 5rem) !important;
  }

  .login-screen__heading {
    margin-bottom: 0.3rem;
  }

  .login-form-stack {
    gap: 0.3rem;
  }

  .anbit-phone-input.anbit-phone-input--compact-login {
    height: 2.35rem;
  }

  .login-screen__input,
  .login-screen__btn {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}