/* Sign in and sign up on phones: the quote / principles card sits right under the logo, above the form, so it is actually seen. */
@media(max-width:900px){
  body.lg-body main.lg{display:flex;flex-direction:column;align-items:center;gap:14px;position:relative;min-height:100vh;padding:76px 16px 28px;
    background:radial-gradient(700px 420px at 70% 0,rgba(59,130,246,.16),transparent 60%),#0a0f1b}
  .lg .lg-right{display:contents}
  .lg .lg-lang{position:absolute;top:16px;right:16px;z-index:5}
  .lg .lg-brand{order:1;margin-bottom:2px}
  .lg .lg-left{order:2;width:min(480px,100%);box-sizing:border-box;padding:16px;gap:10px;align-content:start;justify-items:stretch;border:1px solid rgba(255,255,255,.1);border-radius:20px}
  .lg .lg-form{order:3;width:min(480px,100%);box-sizing:border-box;grid-template-columns:minmax(0,1fr)}
  .lg .lg-form input,.lg .lg-form select{min-width:0;max-width:100%;box-sizing:border-box}
  .lg .lg-back{order:4;margin-top:4px}
  .lg .lg-stage{width:100%}
  .lg .lg-slide{grid-template-columns:60px minmax(0,1fr);gap:14px;justify-items:start;align-items:center}
  .lg .lg-portrait{width:60px;padding:3px;box-shadow:0 8px 20px rgba(0,0,0,.4)}
  .lg .lg-credit{display:none}
  .lg .lg-card{padding:0;border:0;background:none;text-align:left;border-radius:0}
  .lg .lg-card::before{display:none}
  .lg .lg-quote{font-size:.98rem;line-height:1.35;letter-spacing:-.01em}
  .lg .lg-who{margin-top:6px;gap:2px}.lg .lg-who b{font-size:.72rem}.lg .lg-who span{font-size:.74rem}
  .lg .lg-dots{justify-content:flex-start}
  .lg .lg-note{display:none}
  /* sign up: headline beside a small growth chart, principle card, three steps in a row */
  .lg .su-hero{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:12px;align-items:center;width:100%}
  .lg .su-hero h2{margin:0;font-size:1.05rem;line-height:1.25;text-align:left;letter-spacing:-.01em}
  .lg .su-chart{width:104px;height:auto}
  .lg .su-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(135deg,rgba(59,130,246,.45),rgba(45,212,167,.4))}
  .lg .su-icon svg{width:28px;height:28px}
  .lg .su-kicker{display:none}
  .lg .su-title{margin:0 0 3px;font-size:1rem}
  .lg .su-text{margin:0;font-size:.85rem;line-height:1.4;color:var(--muted)}
  .lg .su-steps{list-style:none;margin:2px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
  .lg .su-steps li{display:grid;justify-items:center;gap:6px;text-align:center}
  .lg .su-steps b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:.78rem;color:#06101f;background:var(--grad)}
  .lg .su-steps span{font-size:.7rem;line-height:1.3;color:var(--muted)}
}

/* Phones: smaller, tighter type on the sign-in, sign-up and code pages so nothing feels zoomed in.
   Fields stay at 16px, because iPhones zoom the whole page when you tap a field with smaller text. */
@media(max-width:600px){
  body.lg-body main.lg{padding:64px 14px 24px;gap:12px}
  .lg .lg-brand{font-size:1.02rem;gap:8px}.lg .lg-brand .lg-logo,.lg .lg-brand svg,.lg .lg-brand img{width:26px;height:26px}
  .lg .lg-form{gap:12px;padding:20px 18px;border-radius:20px}
  .lg .lg-form h1{font-size:1.45rem;letter-spacing:-.02em}
  .lg .lg-form .sub{font-size:.9rem;margin:-6px 0 0}
  .lg .lg-form label{font-size:.84rem;gap:5px}
  .lg .lg-form input,.lg .lg-form select{font-size:16px;padding:10px 12px;border-radius:10px}
  .lg .lg-form .otp{font-size:1.45rem!important;padding:10px!important}
  .lg .lg-form .btn{padding:12px;font-size:.95rem}
  .lg .lg-alt,.lg .lg-form .fine,.lg .lg-back{font-size:.85rem}
  .lg .eye{font-size:.8rem}
  .lg .lg-quote{font-size:.9rem}
  .lg .su-hero h2{font-size:.98rem}
}
