/* Alpha Traders · phone sign-in flow (see mobile-login.js).
   Loads AFTER styles.css. Scoped to max-width: 860px; above it the original
   sign-in card is untouched and the screen below never exists. */

.m-intro { display: none; }

@media (max-width: 860px) {
  /* Once the script has taken over, the original (now empty) wrapper goes away. */
  body.m-intro-on .login-wrap { display: none; }
  body.login-page { background: var(--bg); }

  .m-intro {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    background: var(--bg); color: var(--ink);
    padding: 16px 28px calc(32px + env(safe-area-inset-bottom));
  }
  .m-head { display: flex; justify-content: space-between; align-items: center; flex: none; }
  .m-logo { display: flex; align-items: center; }
  .m-logo img { height: 45px; width: auto; }   /* which of the two shows is decided by the site's own .logo-dark / .logo-light rules */
  .m-skip { background: none; border: 0; color: var(--accent); font: inherit; font-size: 15px; padding: 12px 0 12px 12px; cursor: pointer; }
  .m-intro.m-signin .m-skip { display: none; }

  .m-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
  /* 01 / 02 / 03: solid, the darkest blue of the Sign in button's gradient. */
  .m-num { font-size: 96px; line-height: .9; font-weight: 800; color: #2561eb; }
  .m-title { margin: 18px 0 0; font-size: 42px; line-height: 1; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
  .m-body { margin: 18px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

  .m-dots { display: flex; gap: 8px; margin: 0 0 20px; flex: none; }
  .m-dots i { flex: 1; height: 3px; background: var(--rule-strong); }
  .m-dots i.on { background: #04b6d4; }   /* solid: the light-blue end of the button's gradient */

  /* Continue and Sign in share one style: the blue-to-teal gradient sampled from the reference button
     (straight left to right, #2365ea at 5% to #06b2d5 at 95%), with a white label for contrast on blue. */
  .m-intro .m-cta {
    position: relative; flex: none; width: 100%; height: 56px; padding: 0;
    background: linear-gradient(90deg, #2561eb 0%, #04b6d4 100%); color: #fff; border: 0; border-radius: 0;
    font: inherit; font-size: 20px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  }
  .m-intro button { -webkit-tap-highlight-color: transparent; }   /* the :active dim below is the tap feedback */
  .m-intro .m-cta:active:not(:disabled) { filter: brightness(.9); }
  .m-intro .m-cta:disabled { opacity: .6; cursor: progress; }
  /* Steps 01 and 02 show Continue; step 03 shows the form and the page's own Sign in button. */
  .m-intro:not(.m-signin) #login-form, .m-intro:not(.m-signin) #login-submit { display: none; }
  .m-intro.m-signin .m-next { display: none; }
  .m-intro.m-signin #login-form { display: contents; }

  /* The form's own heading, logo and blurb are replaced by the screen's number and title. */
  .m-intro #login-form > img, .m-intro #login-form > h1, .m-intro #login-form > .login-sub { display: none; }
  .m-intro #login-form label { margin: 22px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
  .m-intro #login-form input {
    height: 50px; margin: 0; padding: 0 14px; box-sizing: border-box; width: 100%;
    background: transparent; border: 1px solid var(--ink-muted); border-radius: 0;
    color: var(--ink); font: inherit; font-size: 18px; font-weight: 500;
  }
  .m-intro #login-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
  .m-intro #login-form .login-hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }
  .m-intro #login-form .login-notice, .m-intro #login-form .login-error { margin: 18px 0 0; border-radius: 0; }
}
