.spicy-alternative-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.spicy-alternative-login .spicy-alt-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: #1c1c1f;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.spicy-alternative-login .spicy-alt-btn:hover { border-color: rgba(255, 255, 255, .34); }
.spicy-alternative-login .spicy-alt-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.spicy-alternative-login .spicy-alt-btn:disabled { opacity: .55; cursor: default; }
.spicy-alternative-login .spicy-alt-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.spicy-alternative-login .spicy-alt-btn--telegram { background: #229ed9; border-color: #229ed9; }
.spicy-alternative-login .spicy-alt-btn--telegram:hover { background: #1e8fc4; border-color: #1e8fc4; }
.spicy-alternative-login [role="status"] { margin: 0; min-height: 0; color: #ff8a8a; font-size: 13px; }
.spicy-alternative-login [role="status"]:empty { display: none; }
.login-modal-overlay [data-spicy-google-login][hidden] { display: none !important; }
.login-modal-overlay .spicy-miniapp-methods { flex-direction: column; align-items: stretch; }
.login-modal-overlay .spicy-miniapp-methods > button { width: 100%; flex: none; }
.spicy-alternative-login [role="status"] > button { display: block; margin-top: 8px; min-height: 44px; width: 100%; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 8px; cursor: pointer; }
.spicy-miniapp-login [data-spicy-email-launcher][hidden],
.spicy-miniapp-login [data-alternative-login][hidden],
.spicy-miniapp-login .divide-box { display: none !important; }
.spicy-miniapp-login .login-content { gap: 12px; }
.spicy-miniapp-login .spicy-miniapp-methods { margin-top: 0; gap: 8px; }
.spicy-miniapp-login .form-wrapper-email-mobile { margin-top: 0; gap: 8px; }

.login-content:has(.spicy-login-back) > .spicy-alternative-login,
.spicy-username-active .login-content > :not(.spicy-username-form),
#login.spicy-username-active > :not(.spicy-username-form):not(.dialog-head) { display: none; }
.spicy-login-back, .spicy-username-form .username-cancel {
  display: block; padding: 0; margin: 0 0 20px; border: 0; background: none;
  color: #d5d2d5; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.spicy-login-back:hover, .spicy-username-form .username-cancel:hover { color: #fff; }
.spicy-login-back:focus-visible, .spicy-username-form button:focus-visible, .spicy-username-form input:focus-visible { outline: 2px solid #f34b9a; outline-offset: 2px; }
.spicy-username-form form { display: flex; flex-direction: column; gap: 14px; }
.spicy-username-form h2 { margin: 0 0 4px; color: #fff; font-size: 22px; line-height: 1.25; }
.spicy-username-form label { display: flex; flex-direction: column; gap: 7px; color: #e8e5e8; font-size: 14px; font-weight: 600; }
.spicy-username-form input { box-sizing: border-box; width: 100%; height: 44px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; }
.spicy-username-form [role="status"] { margin: 0; color: #ff8a8a; font-size: 13px; }
.spicy-username-form [role="status"]:empty { display: none; }
.spicy-username-form .google-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spicy-username-form .username-cancel { grid-column: 1 / -1; grid-row: 1; margin: 0 0 4px; }
.spicy-username-form button[type="submit"] { min-height: 44px; border: 1px solid #f556a4; border-radius: 8px; background: #f556a4; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.spicy-username-form button[type="submit"]:hover { background: #ed4898; border-color: #ed4898; }
.spicy-username-form button[value="register"] { background: transparent; color: #f556a4; }
.spicy-username-form button:disabled { opacity: .55; cursor: default; }
.spicy-username-form .username-captcha:empty { display: none; }
/* Username view: collapse the benefits block (195px) so the form and both buttons always fit the fixed-height panel. */
.spicy-username-active .login-content-title-wrapper { display: none; }
.spicy-username-form form { gap: 10px; }
.spicy-username-form h2 { font-size: 18px; margin: 0; }
.spicy-username-form label { gap: 5px; font-size: 13px; }
.spicy-username-form .username-cancel { margin: 0; }
/* Verification runs in the background; the widget only takes room when Cloudflare needs a human. */
.spicy-username-form .username-captcha { width: 100%; min-width: 0; max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.spicy-username-form .username-captcha[data-interactive] { max-height: 80px; }
.spicy-username-form .username-captcha iframe { max-width: 100%; }
/* Telegram is the primary method: it sits above the original Google / email buttons. */
[data-alternative-login]:has(.spicy-alt-btn) { margin: 12px 0; }
.spicy-alternative-login:not(:has(.spicy-alt-btn)):not(:has([role="status"]:not(:empty))) { display: none; }

/* Operator-ordered sign-in methods: the original wrappers dissolve so every method is one flex item. */
.spicy-ordered-login .login-content > .form-wrapper:has(> .social-buttons),
.spicy-ordered-login .social-buttons,
.spicy-ordered-login .social-row-mobile { display: contents; }
.spicy-ordered-login [data-spicy-method-off] { display: none !important; }
