/* login.html and signup.html, after Juicebox's sign-in: the workspace sits
   faded and slightly blurred behind one centred card. The skeleton is the
   RuneShips candidate workspace (built by auth-page.js); ink replaces
   Juicebox's purple. */
:root{
  --font:"Geist","Inter",system-ui,sans-serif;
  --ink:#1b181d;--ink-2:#39353c;--muted:#6f6b73;--soft:#9b979f;
  --line:#e6e4e8;--bar:#eeedf0;--bg:#fcfcfc;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;overflow-x:hidden;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Workspace skeleton */
.sk{position:fixed;inset:0;display:grid;grid-template-columns:210px 1fr;pointer-events:none;user-select:none}
.sk-side{padding:16px 16px;border-right:1px solid var(--line);background:#fafafa}
.sk-logo{width:26px;height:26px;margin:2px 0 22px;color:var(--ink)}
.sk-row{display:flex;align-items:center;gap:10px}
.sk-search{height:30px;border-radius:999px;background:#fff;border:1px solid var(--line);flex:1}
.sk-dot{width:30px;height:30px;border-radius:50%;background:var(--bar)}
.sk-nav{display:grid;gap:14px;margin:26px 0 0}
.sk-nav .sk-row i{width:13px;height:13px;border-radius:3px;background:var(--bar)}
.sk-nav .sk-row b{height:9px;border-radius:5px;background:var(--bar)}
.sk-label{width:118px;height:7px;margin:52px 0 16px;border-radius:4px;background:var(--bar)}
.sk-cur{height:30px;margin:0 0 12px;border-radius:8px;background:#fff;border:1px solid var(--line)}
.sk-nav .sk-row.on i,.sk-nav .sk-row.on b{background:#dcd9df}
.sk-main{display:flex;flex-direction:column;min-width:0}
.sk-crumbs{display:flex;align-items:center;gap:14px;height:46px;padding:0 24px;border-bottom:1px solid var(--line)}
.sk-crumbs b{height:10px;border-radius:5px;background:var(--bar)}
.sk-crumbs span{width:6px;height:6px;border-right:1.5px solid #cfccd3;border-top:1.5px solid #cfccd3;transform:rotate(45deg)}
.sk-band{display:flex;align-items:center;gap:16px;height:100px;padding:0 84px;background:#f6f6f7;border-bottom:1px solid var(--line)}
.sk-band .q{display:flex;align-items:center;gap:14px;width:min(730px,55%);height:42px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff}
.sk-band .q i{width:20px;height:20px;border-radius:50%;background:var(--bar)}
.sk-band .q b{width:55%;height:9px;border-radius:5px;background:var(--bar)}
.sk-band .p{width:90px;height:42px;border:1px solid var(--line);border-radius:999px;background:#fff}
.sk-table{flex:1;padding:22px 84px;overflow:hidden}
.sk-tr{display:grid;grid-template-columns:22px 1.4fr 1.1fr .9fr .6fr .7fr .7fr;align-items:center;gap:0 28px;height:39px}
.sk-tr>*{height:9px;border-radius:5px;background:var(--bar)}
.sk-tr>.c{width:15px;height:15px;border:1.5px solid #e1dfe4;border-radius:4px;background:#fff}
.sk-tr>.pill{height:16px;border-radius:999px}
.g{background:#e3f3e8!important}.a{background:#fbf1d9!important}.r{background:#fbe3e3!important}
.sk-veil{position:fixed;inset:0;backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px);background:rgba(252,252,252,.35)}

/* Card */
.stage{position:relative;z-index:1;display:grid;place-items:center;min-height:100%;padding:24px 16px;overflow-y:auto}
.card{width:min(504px,100%);padding:32px;border-radius:18px;background:#fff;text-align:center;
  box-shadow:0 0 0 1px rgba(27,24,29,.1),0 12px 48px rgba(0,0,0,.16)}
.card-logo{display:inline-grid;place-items:center;width:40px;height:40px;margin:0 auto 20px;color:var(--ink);text-decoration:none}
.card-logo svg{width:30px;height:30px;fill:currentColor}
.card h1{margin:0;font:500 24px/1.33 var(--font);letter-spacing:-.01em}
.card .sub{margin:6px 0 0;color:var(--muted);font-size:14.5px}
.stack{display:grid;gap:10px;margin-top:28px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:40px;padding:0 10px;border:.8px solid #e3e2e5;border-radius:8px;background:#fff;color:var(--ink);font:500 14px/1 var(--font);text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.btn:hover{background:#f7f7f8}
.btn.primary{border-color:transparent;background:var(--ink);color:#fbfafb}
.btn.primary:hover{background:#353038}
.btn:disabled{opacity:.6;cursor:default;pointer-events:none}
.input{width:100%;height:40px;padding:4px 10px;border:.8px solid #e3e2e5;border-radius:8px;background:#fff;color:var(--ink);font:400 14px var(--font);outline:none;transition:border-color .15s,box-shadow .15s}
.input::placeholder{color:#8d8a91}
.input:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(27,24,29,.08)}
.input[aria-invalid="true"]{border-color:#b3261e}
.err{min-height:0;margin:0;color:#b3261e;font-size:13px;text-align:left}
.err:empty{display:none}
.err a{color:inherit;font-weight:500;text-underline-offset:2px}
.hint{margin:-4px 0 0;color:var(--muted);font-size:12.5px;text-align:left}
.field-link{margin:-2px 0 0;font-size:13px;text-align:right}
.field-link a{color:var(--muted);text-decoration:none}
.field-link a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.alt{margin:34px 0 0;color:var(--ink-2);font-size:14px}
.alt a{color:var(--ink);font-weight:500;text-underline-offset:3px}
.fine{margin:30px 0 0;color:var(--muted);font-size:12.5px}
.fine a{color:var(--ink-2);text-decoration:none;border-bottom:1px solid #cfccd3}
.fine a:hover{border-color:var(--ink-2)}

/* Sign up: pick a role, then the form for it */
.card{position:relative}
.step[hidden]{display:none}
.step{animation:step-in .28s ease both}
@keyframes step-in{from{opacity:0}to{opacity:1}}
.roles{display:grid;gap:10px;margin-top:26px}
.role{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:14px;width:100%;padding:14px 16px;border:.8px solid #e3e2e5;border-radius:12px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .18s,transform .18s,box-shadow .18s}
.role:hover{border-color:var(--ink);transform:translateY(-1px);box-shadow:0 6px 18px rgba(27,24,29,.08)}
.role-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f6f5f7}
.role-icon svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.role-text strong{display:block;font-weight:500;font-size:15px}
.role-text small{display:block;margin-top:2px;color:var(--muted);font-size:13px;line-height:1.45}
.role-go{color:var(--soft);transition:transform .18s,color .18s}
.role:hover .role-go{color:var(--ink);transform:translateX(3px)}
.back{position:absolute;top:26px;left:26px;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:.8px solid #e3e2e5;border-radius:8px;background:#fff;color:var(--ink-2);font:500 13px/1 var(--font);cursor:pointer;transition:border-color .15s}
.back:hover{border-color:var(--ink)}
.divider{display:flex;align-items:center;gap:12px;margin:30px 0 12px;color:var(--muted);font-size:13px}
.divider::before,.divider::after{content:"";flex:1;height:.8px;background:var(--line)}
.divider+.btn+.fine{margin-top:14px}
/* Continue with Google sits above the form, with "or" between them. */
.btn.google{margin-top:26px;text-decoration:none}
.btn.google .g{width:18px;height:18px;flex:none}
.divider.or{margin:16px 0}
.divider.or+.btn.google{margin-top:0}
.btn.google+.alt{margin-top:26px}
.stack.after-google{margin-top:0}
.btn[aria-disabled="true"]{opacity:.6;pointer-events:none}
@media(max-width:760px){.sk{grid-template-columns:1fr}.sk-side{display:none}.sk-band,.sk-table{padding-left:20px;padding-right:20px}}
@media(max-width:480px){.card{padding:28px 20px;border-radius:16px}}
@media(max-width:480px){.back{top:20px;left:16px}}
@media(prefers-reduced-motion:reduce){.btn,.input,.role,.role-go{transition:none}.step{animation:none}}
