/* Siqma sign-in: quiet paper specimen + one working form.
   At 1120px: 510px specimen + 608px form + 2px outer border. */
#authPanel {
  --auth-paper-ground:#eeede9;
  --auth-line:#deded8;
  display:flex;
  flex-direction:column;
  gap:28px;
  min-height:100svh;
  padding:28px 40px 22px;
  background:var(--ground);
}
#authPanel .auth-header,
#authPanel .auth-body,
#authPanel .auth-footer { width:100%; max-width:1120px; margin-inline:auto; }
#authPanel .auth-header { display:flex; align-items:center; justify-content:space-between; gap:24px; }
#authPanel .auth-header .brand { font-size:28px; }
#authPanel .auth-product-name { color:var(--muted); font-size:14px; }
#authPanel .auth-body {
  display:grid;
  grid-template-columns:minmax(0, .84fr) minmax(0, 1fr);
  min-height:600px;
  margin-block:auto;
  background:var(--surface);
  border:1px solid var(--auth-line);
  border-radius:16px;
  overflow:clip;
}
#authPanel .auth-story {
  display:flex;
  padding:44px 40px 32px;
  color:var(--ink);
  background:var(--auth-paper-ground);
  border-right:1px solid var(--auth-line);
}
#authPanel .auth-story-content { width:100%; max-width:350px; margin:0 auto; }
#authPanel .auth-story h2 { font-size:32px; line-height:1.18; letter-spacing:-.025em; font-weight:500; }
#authPanel .auth-story-content>p { font-size:15px; line-height:1.6; color:var(--muted); margin:16px 0 28px; max-width:34ch; }
#authPanel .auth-paper { width:100%; max-width:none; max-height:none; margin:0; padding:0; background:var(--surface); border:1px solid var(--auth-line); border-radius:6px; overflow:hidden; }
#authPanel .auth-paper-window { height:254px; overflow:hidden; padding:22px 18px 0; }
#authPanel .auth-paper img { display:block; width:100%; height:auto; }
#authPanel .paper-caption { position:static; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; border-top:1px solid var(--auth-line); background:var(--surface); }
#authPanel .paper-caption span:first-child { color:var(--ink); font-size:13px; font-weight:500; }
#authPanel .paper-caption span:last-child { color:var(--muted); font-size:12px; }
#authPanel .auth-story-note { font-size:12px; line-height:1.6; margin:24px auto 0; color:var(--muted); width:100%; max-width:350px; }
#authPanel .auth-main { min-width:0; padding:52px 48px; justify-content:center; }
#authPanel .auth-form-wrap { width:100%; max-width:368px; margin:0 auto; padding:0; border:0; border-radius:0; background:transparent; }
#authPanel .auth-form-wrap h1 { font-size:28px; font-weight:500; line-height:1.25; letter-spacing:-.025em; margin:0 0 10px; text-wrap:balance; }
#authPanel #authIntro { font-size:15px; line-height:1.6; margin:0 0 30px; max-width:36ch; }
#authPanel .field { margin-bottom:20px; }
#authPanel label { font-size:14px; line-height:1.4; margin-bottom:8px; }
#authPanel input {
  min-height:48px;
  border:1px solid var(--control);
  border-radius:6px;
  background:var(--surface);
  padding:12px 14px;
  font-size:16px;
  line-height:22px;
}
#authPanel input:hover { border-color:var(--muted); }
#authPanel input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-color:var(--accent); }
#authPanel input::placeholder { color:var(--muted); }
#authPanel .password-field input { padding-right:54px; }
#authPanel .password-field>.icon-button { inset:2px 2px auto auto; width:44px; height:44px; min-height:44px; border-radius:4px; color:var(--muted); }
#authPanel #showPassword[aria-pressed=true] { background:var(--raised); color:var(--ink); }
#authPanel .auth-caps-lock { margin:8px 0 0; font-size:12px; color:var(--muted); }
#authPanel .auth-status { font-size:13px; line-height:1.55; color:var(--muted); margin:0 0 16px; min-height:0; }
#authPanel .auth-status:empty { display:none; }
#authPanel .auth-status.error { color:var(--bad); background:#fff5f4; border-left:2px solid var(--bad); padding:10px 12px; border-radius:0 4px 4px 0; }
#authPanel .auth-submit,
#authPanel #activateForm .primary { width:100%; min-height:48px; height:auto; padding:12px 16px; border-radius:6px; background:var(--accent); border-color:var(--accent); font-size:15px; font-weight:500; justify-content:space-between; }
#authPanel .auth-submit:hover,
#authPanel #activateForm .primary:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
#authPanel .auth-submit:active { background:var(--accent-pressed); border-color:var(--accent-pressed); }
#authPanel .auth-submit:disabled { color:var(--surface); background:#545850; border-color:#545850; opacity:1; cursor:wait; }
#authPanel .auth-submit .icon { width:18px; height:18px; }
#authPanel .auth-help { border-top:1px solid var(--border); padding-top:20px; margin-top:24px; max-width:none; color:var(--muted); }
#authPanel .auth-help summary { font-size:13px; font-weight:500; color:var(--ink); cursor:pointer; width:fit-content; padding-block:5px; min-height:28px; }
#authPanel .auth-help summary::marker { color:var(--muted); }
#authPanel .auth-help p { margin:12px 0 0; font-size:13px; line-height:1.65; }
#authPanel .auth-footer { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:20px; margin-top:0; color:var(--muted); font-size:12px; line-height:1.5; }
@media (min-width:761px) and (max-width:1000px) {
  #authPanel { padding-inline:28px; }
  #authPanel .auth-story { padding:36px 28px; }
  #authPanel .auth-main { padding:40px 28px; }
  #authPanel .auth-story h2 { font-size:28px; }
  #authPanel .auth-form-wrap h1 { font-size:26px; }
  #authPanel .auth-paper-window { height:230px; padding:16px 12px 0; }
}
@media (max-width:760px), (max-width:1000px) and (max-height:500px) and (hover:none) {
  #authPanel { gap:32px; padding:max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background:var(--surface); }
  #authPanel .auth-header,
  #authPanel .auth-body,
  #authPanel .auth-footer { max-width:400px; }
  #authPanel .auth-header { align-items:flex-start; gap:12px; }
  #authPanel .auth-header .brand { font-size:28px; }
  #authPanel .auth-product-name { font-size:12px; line-height:1.5; max-width:12ch; text-align:right; padding-top:2px; }
  #authPanel .auth-body { display:block; min-height:0; border:0; border-radius:0; overflow:visible; background:transparent; }
  #authPanel .auth-story { display:none; }
  #authPanel .auth-main { min-height:0; padding:0; }
  #authPanel .auth-form-wrap { max-width:none; }
  #authPanel .auth-form-wrap h1 { font-size:26px; }
  #authPanel #authIntro { font-size:14px; margin-bottom:28px; }
  #authPanel .auth-help summary { min-height:44px; padding-block:12px; }
  #authPanel .auth-help { padding-top:8px; }
  #authPanel .auth-footer { justify-content:center; text-align:center; }
}
@media (max-height:620px) {
  #authPanel { gap:24px; }
  #authPanel .auth-body { margin-block:0; }
}
@media (forced-colors:active) {
  #authPanel .auth-submit:disabled { color:GrayText; border-color:GrayText; }
  #authPanel .auth-status.error { border-color:CanvasText; }
}
