*{box-sizing:border-box}:root{color-scheme:dark;--bg:#08090c;--text:#f5f5f7;--muted:#a0a4af;--line:#292d37;--red:#0864d8;--red2:#075ac8}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}body{min-height:100svh;padding:env(safe-area-inset-top) 14px env(safe-area-inset-bottom);background:radial-gradient(ellipse at 50% -18%,rgba(227,38,62,.12),transparent 48%),#08090c}.recovery-shell{width:min(100%,480px);min-height:100svh;margin:0 auto;display:flex;flex-direction:column}.recovery-brand{height:70px;flex:0 0 70px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.06);margin-bottom:18px}.recovery-back{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;color:#fff;text-decoration:none;font-size:27px;line-height:1}.recovery-logo{width:39px;height:50px;object-fit:contain;flex:0 0 auto}.recovery-brand-copy strong,.recovery-brand-copy small{display:block}.recovery-brand-copy strong{font-size:14px;letter-spacing:-.35px}.recovery-brand-copy small{margin-top:3px;color:#858995;font-size:8px;letter-spacing:2px}.recovery-secure{margin-left:auto;padding:7px 10px;border:1px solid #343741;border-radius:22px;color:#c6c8ce;font-size:9px;letter-spacing:1.4px}.recovery-card{flex:1;min-height:0;padding:25px 19px 22px;border:1px solid rgba(255,255,255,.075);border-radius:23px;background:#08090c;display:flex;flex-direction:column;align-items:stretch}.recovery-lock{width:72px;height:72px;margin:5px auto 20px;display:grid;place-items:center;border:1px solid rgba(227,38,62,.65);border-radius:50%;background:rgba(227,38,62,.09);box-shadow:0 0 30px rgba(227,38,62,.12)}.recovery-lock img{width:31px;height:31px}.recovery-eyebrow{margin:0 0 8px;text-align:center;color:var(--red2);font-size:10px;font-weight:800;letter-spacing:1.8px}.recovery-card h1{margin:0;text-align:center;font-size:clamp(25px,7vw,31px);line-height:1.13;letter-spacing:-.9px}.recovery-description{max-width:330px;margin:12px auto 30px;text-align:center;color:var(--muted);font-size:14px;line-height:1.55}.recovery-label{display:flex;align-items:center;gap:9px;margin:0 0 9px;color:#e7e8ed;font-size:13px;font-weight:650}.recovery-label img{width:19px;height:19px}.recovery-label em{color:#4b8fe8;font-style:normal}.recovery-input-wrap{height:53px;border:1px solid #3a3e49;border-radius:14px;background:#101116;display:flex;align-items:center;padding:0 14px}.recovery-input-wrap:focus-within{border-color:rgba(255,64,87,.78);box-shadow:0 0 0 3px rgba(227,38,62,.1)}.recovery-input-wrap input{width:100%;height:100%;border:0;outline:0;background:transparent;color:#f5f5f7;font:inherit;font-size:14px}.recovery-input-wrap input::placeholder{color:#7f8490}.recovery-submit{width:100%;min-height:54px;margin-top:19px;border:0;border-radius:14px;background:linear-gradient(105deg,#075ac8,#0b67d8);color:#fff;font:inherit;font-size:15px;font-weight:750;box-shadow:0 8px 22px rgba(227,38,62,.16);cursor:pointer;-webkit-tap-highlight-color:transparent}.recovery-submit:active{transform:scale(.99);filter:brightness(.96)}.recovery-feedback{min-height:17px;margin:9px 0 0;color:#a5c8f4;text-align:center;font-size:11px;line-height:1.4}.recovery-login-link{align-self:center;margin:13px 0 3px;color:#d5d6dc;text-decoration:none;font-size:13px;font-weight:600}.recovery-login-link:active{color:#6ba4ee}.recovery-footer{display:flex;justify-content:space-between;gap:10px;padding:14px 3px;color:#737986;font-size:9px}@media(max-width:360px){.recovery-card{padding:20px 15px}.recovery-brand{gap:8px}.recovery-brand-copy strong{font-size:12px}.recovery-secure{font-size:8px;padding:6px 8px}.recovery-description{margin-bottom:23px}}@media(min-height:820px){.recovery-shell{justify-content:center}.recovery-card{flex:0 0 auto;min-height:520px;justify-content:center}.recovery-footer{margin-top:auto}}@media(prefers-reduced-motion:reduce){.recovery-submit{transition:none}}


/* Compact mobile recovery screen: keep the complete form in the visible viewport */
@media(max-width:600px){
  html,body{height:100%;min-height:0;overflow:hidden}
  body{min-height:100dvh;padding:max(4px,env(safe-area-inset-top)) 12px max(4px,env(safe-area-inset-bottom))}
  .recovery-shell{height:100%;min-height:0;max-height:100%;overflow:hidden}
  .recovery-brand{height:54px;min-height:54px;flex:0 0 54px;margin:0 0 8px;gap:8px}
  .recovery-back{width:32px;height:32px;font-size:24px}
  .recovery-logo{width:32px;height:42px}
  .recovery-brand-copy strong{font-size:13px}
  .recovery-brand-copy small{font-size:7px;letter-spacing:1.6px}
  .recovery-secure{font-size:8px;padding:5px 8px}
  .recovery-card{flex:1 1 auto;min-height:0;overflow:hidden;justify-content:center;padding:clamp(13px,2.5dvh,21px) 15px}
  .recovery-lock{width:clamp(52px,9dvh,66px);height:clamp(52px,9dvh,66px);margin:0 auto clamp(9px,1.8dvh,14px)}
  .recovery-lock img{width:26px;height:26px}
  .recovery-eyebrow{font-size:9px;margin-bottom:5px}
  .recovery-card h1{font-size:clamp(22px,6.4vw,27px)}
  .recovery-description{font-size:12px;line-height:1.4;margin:8px auto clamp(14px,2.5dvh,20px)}
  .recovery-label{font-size:11px;margin-bottom:7px}
  .recovery-label img{width:17px;height:17px}
  .recovery-input-wrap{height:45px;border-radius:12px;padding:0 11px}
  .recovery-input-wrap input{font-size:12px}
  .recovery-submit{min-height:46px;margin-top:12px;border-radius:12px;font-size:13px}
  .recovery-feedback{min-height:13px;margin:5px 0 0;font-size:10px}
  .recovery-login-link{margin:10px 0 0;font-size:12px}
  .recovery-footer{flex:0 0 auto;padding:7px 2px 1px;font-size:8px}
}
@media(max-width:600px) and (max-height:680px){
  .recovery-card{padding:9px 13px}
  .recovery-lock{width:48px;height:48px;margin-bottom:7px}
  .recovery-lock img{width:22px;height:22px}
  .recovery-description{margin:6px auto 10px}
  .recovery-submit{min-height:41px;margin-top:9px}
  .recovery-login-link{margin-top:6px}
}


/* Interaction polish: prevent page text selection and Android/iOS blue tap flashes.
   Text editing and selection remain enabled inside form controls. */
html, body, body * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
body input,
body textarea,
body select,
body input *,
body textarea *,
body select *,
body [contenteditable="true"],
body [contenteditable="true"] * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body button,
body a,
body [role="button"],
body input[type="button"],
body input[type="submit"],
body input[type="reset"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
body button:focus:not(:focus-visible),
body a:focus:not(:focus-visible) {
  outline: none;
}

/* Borderless recovery surface: the form blends into the page background. */
.recovery-card{
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Final borderless recovery surface: no visible plate against the page. */
html,body{background-color:#08090c!important}
.recovery-shell{background:transparent!important}
.recovery-card{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}

/* IBKR blue action palette */
:root { --accent: #075ac8; --primary: #075ac8; --brand: #075ac8; --danger-accent: #075ac8; }


/* Customer Care is accessible from password recovery, not the login header. */
.recovery-customer-care {
  display:inline-flex;align-items:center;justify-content:center;align-self:center;
  margin:10px auto 0;padding:9px 15px;border:1px solid #075ac8;border-radius:9px;
  color:#8bb8f0;text-decoration:none;font-size:12px;font-weight:700;
  background:rgba(7,90,200,.10);
}
.recovery-customer-care:active { background:rgba(7,90,200,.22); }
