/* Client journey — layered on /shared/theme.css, following the prototype's login. */

.login-stage{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 18px}
.login-brand{text-align:center;margin-bottom:22px}
.login-brand .mark{width:64px;height:64px;margin:0 auto 14px;display:block}
.login-brand .t{font-size:23px;font-weight:600;color:var(--navy);letter-spacing:-.02em}
.login-brand .s{font-size:12.5px;color:var(--muted);margin-top:3px}
.login-card{width:100%;max-width:430px;background:#fff;border:1px solid var(--line);border-radius:18px;
  box-shadow:var(--shadow);overflow:hidden}
.login-card .strip{height:4px;background:linear-gradient(90deg,var(--cyan),var(--teal),var(--green))}
.login-card .pad{padding:26px}

.steps{display:flex;align-items:center;gap:8px;margin-bottom:20px}
.step{flex:1;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.04em}
.step i{width:20px;height:20px;border-radius:50%;background:#eef2f6;color:var(--muted);display:grid;place-items:center;
  font-style:normal;font-size:10.5px;font-family:var(--mono);flex:none}
.step.on{color:var(--navy)}
.step.on i{background:linear-gradient(135deg,var(--teal),var(--navy));color:#fff}
.step.done i{background:rgba(11,177,131,.15);color:#07845f}

.otpbox{display:flex;gap:8px;justify-content:space-between;margin-bottom:12px}
.otpbox input{width:100%;aspect-ratio:1/1.15;text-align:center;font-family:var(--mono);font-size:21px;font-weight:600;
  border:1px solid var(--line);border-radius:10px;background:#fbfdfe;color:var(--navy);outline:none;transition:.15s;padding:0}
.otpbox input:focus{border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(23,180,185,.14)}
.otpbox input.filled{border-color:var(--teal);background:#fff}
.otp-meta{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:var(--muted);margin-bottom:16px}
.demo-otp{display:flex;align-items:center;gap:9px;background:rgba(217,138,31,.09);border:1px dashed rgba(217,138,31,.4);
  border-radius:9px;padding:9px 13px;font-size:11.5px;color:#8a5a10;margin-bottom:14px}
.demo-otp b{font-family:var(--mono);font-size:15px;letter-spacing:.16em;color:#7a4f0c}

.acct{width:100%;text-align:left;border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:#fff;
  margin-bottom:9px;transition:.15s;display:flex;align-items:center;gap:12px}
.acct:hover{border-color:var(--teal);box-shadow:0 0 0 3px rgba(23,180,185,.1)}
.acct .av{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:linear-gradient(140deg,var(--teal),var(--navy));color:#fff;font-weight:600;font-size:12px}
.acct .nm{font-weight:600;font-size:13.5px}
.acct .cd{font-size:11.5px;color:var(--muted);font-family:var(--mono)}

.foot{margin-top:20px;text-align:center;font-size:10.5px;color:var(--muted);line-height:1.7;max-width:430px}

/* ---------- signed-in app ---------- */
.issues{display:flex;flex-direction:column;gap:11px}
.issue{border:1px solid var(--line);border-radius:12px;padding:15px;background:#fff;transition:.16s}
.issue:hover{border-color:rgba(23,180,185,.5);box-shadow:var(--shadow-s)}
.issue .hd{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}
.issue .sym{font-size:16px;font-weight:600;color:var(--navy)}
.issue .co{font-size:12px;color:var(--muted)}
.issue .isin{font-family:var(--mono);font-size:10.5px;color:var(--muted);margin-top:2px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:1px;background:var(--line-s);
  border:1px solid var(--line-s);border-radius:10px;overflow:hidden}
.facts div{background:#fff;padding:9px 12px}
.facts .k{font-size:9.5px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);font-weight:600}
.facts .v{font-family:var(--mono);font-size:13px;font-weight:600;margin-top:2px}
.cdn{font-family:var(--mono);font-size:11.5px;color:var(--amber);margin-top:11px}

/* ---------- improvements the prototype does not have ---------- */

/* Inline validity: a tick appears the moment a field is well-formed, so nobody
   presses Send only to be told the mobile is nine digits. */
.field{position:relative}
.field .tick{position:absolute;right:12px;top:50%;transform:translateY(-50%) scale(.6);
  color:var(--green);font-size:17px;font-weight:700;opacity:0;transition:.16s;pointer-events:none}
.field.valid .tick{opacity:1;transform:translateY(-50%) scale(1)}
.field.valid .inp{border-color:rgba(11,177,131,.55)}
.inp[aria-invalid="true"]{border-color:var(--red);box-shadow:0 0 0 3px rgba(214,69,80,.12)}

/* Buttons say what they are doing rather than going dead. */
.btn.busy{pointer-events:none;opacity:.75}
.btn.busy .lbl{opacity:.6}
.btn.busy::after{content:'';width:14px;height:14px;border-radius:50%;
  border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}

/* Keyboard users get a visible ring; mouse users do not. */
:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:6px}

/* The prototype is desktop-first. Clients will mostly arrive on a phone. */
@media (max-width:480px){
  .login-stage{padding:18px 12px;justify-content:flex-start}
  .login-brand{margin-bottom:16px}
  .login-brand .mark{width:52px;height:52px}
  .login-brand .t{font-size:20px}
  .login-card{border-radius:14px}
  .login-card .pad{padding:20px 17px}
  /* Only the current step is named on a narrow screen; the rest stay as numbers. */
  .step span{display:none}
  .step.on span{display:inline}
  .otpbox{gap:6px}
  .otpbox input{font-size:19px;border-radius:9px}
  .inp,.btn{font-size:16px}          /* >=16px stops iOS zooming the page on focus */
  .btn{padding:13px 17px}            /* comfortable tap target */
  .wrap{padding:14px 12px 40px}
  .topbar{padding:11px 13px;gap:10px}
  .facts{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important}
}

/* Visible from the first glance that this is not the live desk. */
.test-banner{position:fixed;top:0;left:0;right:0;z-index:40;text-align:center;
  background:rgba(217,138,31,.14);border-bottom:1px solid rgba(217,138,31,.4);
  color:#8a5a10;font-size:11.5px;font-weight:600;padding:7px 14px;letter-spacing:.02em}
.test-banner+.login-brand,.test-banner~*{position:relative}

/* ---- responsive: fill the gaps left by the single 480px query above ---- */
@media (max-width: 900px) {
  .wrap{padding:16px 14px 48px}
  .topbar{padding:11px 14px;gap:12px}
  .cards,.grid2{grid-template-columns:1fr}
}
@media (max-width: 560px) {
  .wrap{padding:12px 11px 36px}
  .topbar{gap:9px}
  .brand img{height:30px}
  input,select,textarea{font-size:16px}     /* stops iOS zooming on focus */
  .btn{min-height:46px}
}
@media (hover: none) and (pointer: coarse) {
  .btn,.mini{min-height:44px}
}

/* ---- which identifier is signing in (shown from "send code" until signed in) ---- */
.id-used{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;
  padding:9px 13px;background:#f2f7fb;border:1px solid var(--line);border-radius:var(--r-s)}
.id-used .k{font-size:10px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.id-used b{font-family:var(--mono);font-size:13.5px;color:var(--navy);word-break:break-all;flex:1 1 auto}
.id-used .chg{border:0;background:transparent;padding:2px 6px;border-radius:6px;
  font-size:11.5px;font-weight:600;color:var(--navy);text-decoration:underline}
.id-used .chg:hover{background:#e4eef6;text-decoration:none}

/* ---- polish: softer edges, colour for status only ---- */
:root{--hair:rgba(27,42,78,.09);--edge:rgba(27,42,78,.13)}
.card,.login-card,.topbar{border-color:var(--edge)}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:6px}
