/* FXStatus v0.7.356 — shared authentication popups.
   Standalone popup skin for login, registration and password recovery.
   Keep this file independent from home-landing.css so the same dialogs can be reused on other pages. */

/* Popup-local theme tokens: exact landing values, scoped so this stylesheet is portable. */
.fx-home-login-modal {
  --fxh-title:#192b44;
  --fxh-text:#2f4660;
  --fxh-muted:#516780;
  --fxh-line:rgba(52,82,120,.17);
  --fxh-line-strong:rgba(52,82,120,.3);
  --fxh-glass:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,255,255,.64)),#edf2fa;
  --fxh-glass-inset:inset 0 1px 0 #fff;
  --fxh-link:#4655c4;
  --fxh-field:#f1f5fb;
  --fxh-card:#fff;
  box-sizing:border-box;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.fx-home-login-modal *,
.fx-home-login-modal *::before,
.fx-home-login-modal *::after { box-sizing:border-box; }
html[data-theme="dark"] .fx-home-login-modal {
  --fxh-title:#edf3fa;
  --fxh-text:#d5dfeb;
  --fxh-muted:#a6b8cc;
  --fxh-line:rgba(163,191,219,.16);
  --fxh-line-strong:rgba(176,202,228,.28);
  --fxh-glass:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.008) 65%),rgba(36,47,61,.86);
  --fxh-glass-inset:inset 0 1px 0 rgba(255,255,255,.08);
  --fxh-link:#a6b9ff;
  --fxh-field:#1d2936;
  --fxh-card:#242f3d;
}

/* v0.7.327: landing login modal */
body.fx-home-modal-open{overflow:hidden}
.fx-home-login-modal[hidden]{display:none!important}
.fx-home-login-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}
.fx-home-login-backdrop{position:absolute;inset:0;background:rgba(10,20,38,.38);backdrop-filter:blur(7px)}
.fx-home-login-dialog{position:relative;width:min(404px,calc(100vw - 36px));background:#fff;color:#0c1d3a;border:1px solid #e2e8f2;border-radius:15px;box-shadow:0 24px 80px rgba(21,36,68,.20);padding:30px 32px 20px;overflow:hidden}
.fx-home-login-x{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#8290a8;font-size:24px;line-height:1;cursor:pointer}
.fx-home-login-brand{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:14px;margin-bottom:28px}
.fx-home-login-mark{width:54px;height:54px;border-radius:12px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#6659ff,#8b39ee);color:#fff;font-size:27px;font-weight:800;box-shadow:0 8px 20px rgba(99,72,246,.26)}
.fx-home-login-mark img{width:100%;height:100%;object-fit:cover}
.fx-home-login-brand b{display:block;font-size:20px;line-height:1.05}.fx-home-login-brand small{display:block;margin-top:6px;font-size:8px;letter-spacing:.26em;color:#667797}
.fx-home-login-brand em{font-style:normal;border-left:1px solid #dbe3ef;padding-left:17px;color:#6f82a3;font-size:7px;font-weight:700;line-height:1.65;letter-spacing:.25em}
.fx-home-login-copy h2{margin:0 0 7px;font-size:28px;line-height:1.15;color:#0c1d3a}.fx-home-login-copy p{margin:0 0 23px;color:#667797;font-size:13px;line-height:1.55}
.fx-home-login-form>label{display:block;margin:0 0 20px;color:#34435d;font-size:15px;font-weight:500}
.fx-home-login-field{height:42px;margin-top:6px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;border:1px solid #dfe6f1;border-radius:10px;background:#f7f9fd;overflow:hidden}
.fx-home-login-field i{font-style:normal;text-align:center;color:#7383a0;border-right:1px solid #e2e8f2}.fx-home-login-field input{width:100%;height:100%;border:0;outline:0;background:transparent;color:#14223c;padding:0 12px;font:inherit}.fx-home-login-eye{border:0;background:transparent;color:#7a88a5;padding:0 12px;cursor:pointer}
.fx-home-login-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 18px;font-size:10px}.fx-home-login-row a{color:#6552ee;text-decoration:none}.fx-home-login-remember{display:flex;align-items:center;gap:8px;color:#687895}.fx-home-login-remember input{width:18px;height:18px;accent-color:#5e43f4}
.fx-home-login-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fx-home-login-actions>*{height:46px;border-radius:9px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:13px;font-weight:600}.fx-home-login-submit{border:0;color:#fff;background:linear-gradient(115deg,#8b39f2,#2787f4);cursor:pointer;gap:14px;box-shadow:0 8px 20px rgba(85,77,240,.2)}.fx-home-login-actions>a{border:1px solid #cfc7ff;color:#624af0;background:#fff}
.fx-home-login-foot{border-top:1px solid #e4e9f2;margin-top:25px;padding-top:16px;text-align:center;color:#8390a8}.fx-home-login-foot span,.fx-home-login-foot small{display:block;font-size:9px}.fx-home-login-foot small{margin-top:11px}
[data-theme="dark"] .fx-home-login-backdrop{background:rgba(0,5,14,.7)}
[data-theme="dark"] .fx-home-login-dialog{background:#172432;color:#f2f6ff;border-color:#33465a;box-shadow:0 24px 80px rgba(0,0,0,.45)}
[data-theme="dark"] .fx-home-login-copy h2,[data-theme="dark"] .fx-home-login-brand b{color:#f4f7ff}
[data-theme="dark"] .fx-home-login-copy p,[data-theme="dark"] .fx-home-login-form>label,[data-theme="dark"] .fx-home-login-remember,[data-theme="dark"] .fx-home-login-foot{color:#a9b7c9}
[data-theme="dark"] .fx-home-login-field{background:#1d2d3e;border-color:#3a4c60}[data-theme="dark"] .fx-home-login-field input{color:#f4f7ff}[data-theme="dark"] .fx-home-login-field i{border-color:#3a4c60}[data-theme="dark"] .fx-home-login-actions>a{background:#1d2d3e}
@media(max-width:520px){.fx-home-login-dialog{padding:25px 20px 18px}.fx-home-login-brand{grid-template-columns:48px 1fr}.fx-home-login-brand em{display:none}.fx-home-login-mark{width:48px;height:48px}.fx-home-login-actions{grid-template-columns:1fr}.fx-home-login-row{align-items:flex-start;flex-direction:column}.fx-home-login-copy h2{font-size:24px}}

/* v0.7.328: login modal footer activation + valid modal CSS; typography unchanged */

/* v0.7.329: login popup cleanup — removed decorative slogan/left rule and footer divider/copy */

/* v0.7.330: requested login popup typography and remember-label copy */
.fx-home-login-brand small { font-size:10px; }
.fx-home-login-copy p { font-size:15px; }
.fx-home-login-form>label {
  display:block;
  margin:0 0 20px;
  color:#34435d;
  font-size:15px;
  font-weight:500;
}
.fx-home-login-row { font-size:14px; }
.fx-home-login-actions>* { font-size:14px; }

/* v0.7.331: login field SVG icons, square remember checkbox, forgot-password accent */
.fx-home-login-icon svg,
.fx-home-login-eye svg {
  width:18px;
  height:18px;
  display:block;
  margin:auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.fx-home-login-eye { display:grid; place-items:center; }
.fx-home-login-remember input { border-radius:1px; }
.fx-home-login-row a { color:#5e43f4; }


/* v0.7.332: login registration outline style, visible-password eye state, 2px remember checkbox */
.fx-home-login-actions>a {
  border-color:var(--fxh-line-strong);
  background:var(--fxh-glass);
  color:var(--fxh-title)!important;
  box-shadow:var(--fxh-glass-inset);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.fx-home-login-actions>a:hover {
  transform:translateY(-1px);
  background:var(--fxh-card);
  border-color:var(--fxh-link);
}
.fx-home-login-row a { color:#5e43f4; }
.fx-home-login-eye .fx-home-login-eye-lashes { opacity:0; transition:opacity .16s ease; }
.fx-home-login-eye.is-visible .fx-home-login-eye-lashes { opacity:1; }
.fx-home-login-remember input { border-radius:2px; }
[data-theme="dark"] .fx-home-login-actions>a { background:var(--fxh-glass); color:var(--fxh-title)!important; }
[data-theme="dark"] .fx-home-login-actions>a:hover { background:var(--fxh-card); border-color:var(--fxh-link); }
@media (prefers-reduced-motion:reduce){.fx-home-login-actions>a,.fx-home-login-eye .fx-home-login-eye-lashes{transition:none}}

/* v0.7.333: enforce forgot-password accent and custom 2px remember checkbox */
.fx-home-login-modal .fx-home-login-row > a {
  color:#5e43f4 !important;
}
.fx-home-login-remember input[type="checkbox"] {
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin:0;
  border:1px solid #8b95a8;
  border-radius:2px !important;
  background:#fff;
  display:grid;
  place-content:center;
  cursor:pointer;
}
.fx-home-login-remember input[type="checkbox"]::before {
  content:"";
  width:10px;
  height:10px;
  transform:scale(0);
  transition:transform .12s ease-in-out;
  clip-path:polygon(14% 44%,0 59%,39% 100%,100% 24%,84% 10%,38% 70%);
  background:#fff;
}
.fx-home-login-remember input[type="checkbox"]:checked {
  border-color:#5e43f4;
  background:#5e43f4;
}
.fx-home-login-remember input[type="checkbox"]:checked::before {
  transform:scale(1);
}
.fx-home-login-remember input[type="checkbox"]:focus-visible {
  outline:3px solid rgba(94,67,244,.24);
  outline-offset:2px;
}
[data-theme="dark"] .fx-home-login-remember input[type="checkbox"] {
  border-color:#6f7e91;
  background:#172432;
}
[data-theme="dark"] .fx-home-login-remember input[type="checkbox"]:checked {
  border-color:#765fff;
  background:#765fff;
}
@media (prefers-reduced-motion:reduce){
  .fx-home-login-remember input[type="checkbox"]::before{transition:none}
}

/* v0.7.334: prevent mobile/tablet browser focus zoom on login fields */
@media (max-width:1024px) {
  .fx-home-login-field input {
    font-size:16px;
  }
}

/* v0.7.335: remove clipped global focus outline from login text inputs */
.fx-home-login-field input:focus,
.fx-home-login-field input:focus-visible {
  outline:none!important;
  outline-offset:0!important;
  box-shadow:none!important;
}

/* v0.7.337: keep login actions on one row on phones and tune dark forgot-password accent */
@media (max-width:520px) {
  .fx-home-login-actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px;
  }
}
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-row > a {
  color:#a898ff !important;
}

/* v0.7.338: keep remember-me and forgot-password on one row on phones */
@media (max-width:520px) {
  .fx-home-login-row {
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:nowrap;
  }
  .fx-home-login-remember {
    min-width:0;
    white-space:nowrap;
  }
  .fx-home-login-row > a {
    flex:0 0 auto;
    white-space:nowrap;
  }
}


/* v0.7.339: prevent Chrome mobile focus zoom in landing login popup */
@media (max-width:1024px) {
  .fx-home-login-modal {
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  .fx-home-login-field input {
    font-size:16px !important;
    touch-action:manipulation;
  }
}


/* v0.7.340: match landing login close control to Add-to-group modal */
.fx-home-login-x{
  position:absolute;
  right:14px;
  top:14px;
  width:30px;
  height:30px;
  border:0;
  border-radius:8px;
  background:#f2f4f8;
  color:#5b6472;
  display:grid;
  place-items:center;
  padding:0;
  font-size:0;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease;
}
.fx-home-login-x svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
}
.fx-home-login-x:hover{background:#e6e9f0;}
[data-theme="dark"] .fx-home-login-x{
  background:#2b3950;
  color:#cad4e2;
  border:1px solid #405069;
}
[data-theme="dark"] .fx-home-login-x:hover{
  background:#354760;
  color:#fff;
  border-color:#52657f;
}

/* v0.7.341: requested login form label spacing */

/* v0.7.342: login submit hover matches primary "Начать бесплатно" CTA */
.fx-home-login-submit:hover {
  box-shadow:0 8px 22px rgba(72,83,190,.24);
}

/* v0.7.343: login submit gets the same visible hover motion and shadow as "Начать бесплатно" */
.fx-home-login-submit {
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.fx-home-login-submit:hover {
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(72,83,190,.24);
}
@media (prefers-reduced-motion:reduce) {
  .fx-home-login-submit { transition:none; }
}

/* v0.7.345: registration modal mirrors login modal and adds referral bonus state */
.fx-home-register-dialog{
  width:min(404px,calc(100vw - 36px));
  padding:30px 32px 20px;
}
.fx-home-register-copy p{margin-bottom:14px}
.fx-home-register-bonus{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin:0 0 22px;
  padding:12px 14px;
  border:1px solid #dce7ff;
  border-radius:10px;
  background:#f1f6ff;
  color:#17437d;
}
.fx-home-register-bonus[hidden]{display:none!important}
.fx-home-register-gift{
  width:74px;
  height:66px;
  display:block;
  background:linear-gradient(145deg,#86aaff 0%,#4c76ff 55%,#315ce9 100%);
  -webkit-mask:url('/static/img/home/v346/gift.svg') center/contain no-repeat;
  mask:url('/static/img/home/v346/gift.svg') center/contain no-repeat;
  filter:drop-shadow(0 7px 10px rgba(70,101,224,.22));
}
.fx-home-register-bonus-copy{min-width:0}
.fx-home-register-bonus-copy b{
  display:block;
  margin:0 0 5px;
  color:#10274b;
  font-size:15px;
  line-height:1.35;
  font-weight:700;
}
.fx-home-register-bonus-copy small{
  display:block;
  color:#466184;
  font-size:14px;
  line-height:1.45;
  font-weight:500;
}
.fx-home-register-bonus.is-referral{
  border-color:#ccecdf;
  background:#edf9f4;
  color:#087955;
}
.fx-home-register-bonus.is-referral .fx-home-register-gift{
  background:linear-gradient(145deg,#76e1b4 0%,#21b77f 55%,#078e61 100%);
  filter:drop-shadow(0 7px 10px rgba(18,155,106,.20));
}
.fx-home-register-bonus.is-referral .fx-home-register-bonus-copy b{color:#0b5f48}
.fx-home-register-bonus.is-referral .fx-home-register-bonus-copy small{color:#3d6f62}
.fx-home-register-form>label{margin-bottom:16px}
.fx-home-register-form .fx-home-login-field input::placeholder{color:#9cadc6;opacity:1}
.fx-home-register-submit{
  width:100%;
  height:46px;
  border-radius:9px;
  font-size:14px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
}
[data-theme="dark"] .fx-home-register-bonus{
  border-color:#344c69;
  background:#1b3049;
  color:#b8d3ff;
}
[data-theme="dark"] .fx-home-register-bonus .fx-home-register-bonus-copy b{color:#e6f0ff}
[data-theme="dark"] .fx-home-register-bonus .fx-home-register-bonus-copy small{color:#a9bfdc}
[data-theme="dark"] .fx-home-register-bonus.is-referral{
  border-color:#63d7b5;
  background:#07664e;
}
[data-theme="dark"] .fx-home-register-bonus.is-referral .fx-home-register-bonus-copy b{color:#c9f5e6}
[data-theme="dark"] .fx-home-register-bonus.is-referral .fx-home-register-bonus-copy small{color:#9bcdbd}
@media (max-width:520px){
  .fx-home-register-dialog{padding:25px 20px 18px}
  .fx-home-register-bonus{grid-template-columns:72px minmax(0,1fr);padding:11px 12px;gap:10px}
  .fx-home-register-gift{width:66px;height:60px}
}


/* v0.7.346: register bonus copy, spacing and Bootstrap gift icon */
.fx-home-register-form>label:last-of-type{
  margin-bottom:30px;
}

/* v0.7.352: inline authentication responses, scoped to existing dialogs. */
.fx-home-auth-message {margin:0 0 16px;padding:12px 14px;border:1px solid var(--fxh-line);border-radius:12px;background:var(--fxh-field);color:var(--fxh-text);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.fx-home-auth-message.is-error {color:#c92c47;border-color:rgba(201,44,71,.3)}
html[data-theme="dark"] .fx-home-auth-message.is-error {color:#ff9eae;border-color:rgba(255,158,174,.3)}
.fx-home-auth-message[hidden] {display:none}
.fx-home-login-submit:disabled {opacity:.65;cursor:wait}

/* v0.7.353 — recovery reuses the authentication dialog and field styles. */
.fx-recovery-step[hidden] {display:none!important}
.fx-recovery-digits {display:flex;justify-content:center;gap:10px;margin:8px 0}
.fx-recovery-digits input {box-sizing:border-box;width:52px;min-width:0;height:56px;border:1px solid var(--fxh-line-strong);border-radius:12px;background:var(--fxh-field);color:var(--fxh-title);font-family:inherit;font-weight:600;font-size:24px;line-height:1;text-align:center;padding:8px}
.fx-recovery-digits input:focus {outline:2px solid #879dff;outline-offset:1px}
.fx-recovery-hint,.fx-recovery-resend {text-align:center;color:var(--fxh-muted);font-size:13px;line-height:1.5;margin:0}
.fx-recovery-resend button,.fx-recovery-back {border:0;background:transparent;color:var(--fxh-link);font:inherit;cursor:pointer;padding:4px}
.fx-recovery-resend button:disabled {cursor:default;color:var(--fxh-muted)}
.fx-recovery-back {font-size:14px;justify-self:center}
.fx-recovery-resend button:enabled:hover,.fx-recovery-back:hover {text-decoration:underline;text-underline-offset:3px}
@media(max-width:359px){.fx-recovery-digits {gap:8px}.fx-recovery-digits input {width:46px;height:52px}}

/* v0.7.358: isolate shared auth popup controls from global app.css.
   Public /u/, /p/ and /g/ pages load app.css, whose global input/button/label
   rules use !important. These overrides preserve the landing-page auth skin
   when the same popup is rendered inside the public application layout. */
.fx-home-login-modal .fx-home-login-form > label {
  display:block;
  flex-direction:initial;
  gap:0;
}
.fx-home-login-modal .fx-home-login-field input {
  width:100% !important;
  min-width:0 !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#14223c !important;
  box-shadow:none !important;
  outline:0 !important;
}
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-field input {
  background:transparent !important;
  color:#f4f7ff !important;
  border:0 !important;
  box-shadow:none !important;
}
.fx-home-login-modal .fx-home-login-remember {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:8px;
  font-weight:400;
}
.fx-home-login-modal .fx-home-login-remember input[type="checkbox"] {
  width:18px !important;
  min-width:18px !important;
  height:18px !important;
  min-height:18px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #8b95a8 !important;
  border-radius:2px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.fx-home-login-modal .fx-home-login-remember input[type="checkbox"]:checked {
  border-color:#5e43f4 !important;
  background:#5e43f4 !important;
}
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-remember input[type="checkbox"] {
  border-color:#6f7e91 !important;
  background:#172432 !important;
}
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-remember input[type="checkbox"]:checked {
  border-color:#765fff !important;
  background:#765fff !important;
}
.fx-home-login-modal .fx-home-login-actions > * {
  height:46px;
  min-height:46px;
  border-radius:9px !important;
  font-size:14px !important;
  font-weight:600 !important;
}
.fx-home-login-modal .fx-home-login-submit,
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-submit {
  border:0 !important;
  border-radius:9px !important;
  background:linear-gradient(115deg,#8b39f2,#2787f4) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(85,77,240,.2);
}
.fx-home-login-modal .fx-home-login-submit:hover,
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-submit:hover {
  background:linear-gradient(115deg,#8b39f2,#2787f4) !important;
  color:#fff !important;
  box-shadow:0 8px 22px rgba(72,83,190,.24);
}
.fx-home-login-modal .fx-home-login-eye,
.fx-home-login-modal .fx-home-login-x {
  min-height:0;
  font-weight:400 !important;
}
.fx-home-login-modal .fx-home-login-eye {
  border-radius:0 !important;
  background:transparent !important;
}
html[data-theme="dark"] .fx-home-login-modal .fx-home-login-eye {
  background:transparent !important;
}
.fx-home-login-modal .fx-home-login-x {
  border-radius:8px !important;
}
.fx-home-login-modal .fx-recovery-digits input {
  min-height:56px !important;
  border:1px solid var(--fxh-line-strong) !important;
  border-radius:12px !important;
  background:var(--fxh-field) !important;
  color:var(--fxh-title) !important;
  box-shadow:none !important;
}
@media(max-width:359px){
  .fx-home-login-modal .fx-recovery-digits input { min-height:52px !important; }
}

/* v0.7.359: align password-recovery email step with registration popup. */
#fxRecoveryEmailForm > label {
  margin-bottom:30px !important;
}
#fxRecoveryEmailForm .fx-home-login-field input::placeholder {
  color:#9cadc6 !important;
  opacity:1;
}
#fxRecoveryEmailForm > .fx-home-login-submit {
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 16px !important;
  border-radius:9px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:16px !important;
  font-size:14px !important;
  font-weight:600 !important;
}


/* v0.7.360: unify auth popup action font size. */
.fx-home-login-modal .fx-home-login-actions > *,
.fx-home-login-modal .fx-home-register-submit,
.fx-home-login-modal #fxRecoveryEmailForm > .fx-home-login-submit,
.fx-home-login-modal #fxRecoveryCodeForm > .fx-home-login-submit,
.fx-home-login-modal #fxRecoveryChangeEmail {
  font-size:15px !important;
}


/* v0.7.361: recovery code step parity with login action layout. */
.fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-resend,
.fx-home-login-modal #fxTwoFactorForm .fx-recovery-resend {
  margin-bottom:30px !important;
}
.fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-code-actions {
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
.fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-code-actions > * {
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  margin:0 !important;
  padding:0 16px !important;
  border-radius:9px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  font-size:15px !important;
  font-weight:600 !important;
}
.fx-home-login-modal #fxRecoveryCodeForm #fxRecoveryChangeEmail {
  border:1px solid var(--fxh-line-strong) !important;
  background:var(--fxh-glass) !important;
  color:var(--fxh-title) !important;
  box-shadow:var(--fxh-glass-inset) !important;
  cursor:pointer;
}
.fx-home-login-modal #fxRecoveryCodeForm #fxRecoveryChangeEmail:hover {
  background:var(--fxh-card) !important;
  border-color:var(--fxh-link) !important;
}
.fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-resend button:enabled {
  color:#5e43f4 !important;
}
html[data-theme="dark"] .fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-resend button:enabled {
  color:#a898ff !important;
}
.fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-resend button:disabled {
  color:var(--fxh-muted) !important;
}
@media(max-width:520px){
  .fx-home-login-modal #fxRecoveryCodeForm .fx-recovery-code-actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px;
  }
}

/* v0.7.363: recovery code digit layout and single-border interaction. */
.fx-recovery-digits {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.fx-recovery-digits input {
  box-sizing: border-box;
  width: 40px;
  min-width: 0;
  height: 45px;
  border: 1px solid var(--fxh-line-strong);
  border-radius: 12px;
  background: var(--fxh-field);
  color: var(--fxh-title);
  font-family: inherit;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  padding: 8px;
  outline: none !important;
  box-shadow: none !important;
}
.fx-recovery-digits input:hover,
.fx-recovery-digits input:focus,
.fx-recovery-digits input:focus-visible {
  border-color: #7c3aed !important;
  outline: none !important;
  box-shadow: none !important;
}


/* v0.7.365: enforce recovery digit field visuals inside auth modal. */
.fx-home-login-modal .fx-recovery-digits input {
  min-height: 45px !important;
  border: 1px solid var(--fxh-line-strong) !important;
  border-radius: 12px !important;
  background: var(--fxh-field) !important;
  color: var(--fxh-title) !important;
  box-shadow: none !important;
}

.fx-recovery-digits input:hover,
.fx-recovery-digits input:focus,
.fx-recovery-digits input:focus-visible {
  border-color: #3761d5 !important;
  outline: none !important;
  box-shadow: none !important;
}


/* v0.7.366: align new-password recovery step with registration popup. */
.fx-home-login-modal #fxRecoveryPasswordForm .fx-home-login-field input::placeholder {
  color:#9cadc6 !important;
  opacity:1 !important;
}

.fx-home-login-modal #fxRecoveryPasswordForm > label:last-of-type {
  margin-bottom:30px !important;
}

.fx-home-login-modal #fxRecoveryPasswordForm > .fx-home-login-submit {
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  margin:0 !important;
  padding:0 16px !important;
  border-radius:9px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:16px !important;
  font-size:15px !important;
  font-weight:600 !important;
}

.fx-home-login-modal #fxRecoveryPasswordForm .fx-home-login-eye .fx-home-login-eye-lashes {
  opacity:0;
  transition:opacity .16s ease;
}

.fx-home-login-modal #fxRecoveryPasswordForm .fx-home-login-eye.is-visible .fx-home-login-eye-lashes {
  opacity:1;
}

/* v0.7.472: on phones move the registration card as one whole object.
   The overlay owns vertical touch movement; the dialog itself never becomes
   an inner scroll container. Scrollbars stay visually hidden. */
@media (max-width:520px) {
  .fx-home-register-modal {
    display:block;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    scrollbar-width:none;
    padding:
      max(12px, env(safe-area-inset-top))
      18px
      max(12px, env(safe-area-inset-bottom));
  }
  .fx-home-register-modal::-webkit-scrollbar {
    display:none;
    width:0;
    height:0;
  }
  .fx-home-register-modal .fx-home-login-backdrop {
    position:fixed;
  }
  .fx-home-register-modal .fx-home-register-dialog {
    width:min(404px,100%);
    margin:0 auto;
    max-height:none;
    overflow:hidden;
  }
  .fx-home-register-modal .fx-home-login-remember {
    width:100%;
    min-width:0;
    align-items:flex-start;
    white-space:normal;
  }
  .fx-home-register-modal .fx-home-login-remember > span {
    min-width:0;
    white-space:normal;
    line-height:1.4;
    overflow-wrap:anywhere;
  }
}
