/* PrePressWiz sign-in page: a tilted ruled sheet with dimension marks, and the sign-in card. Colours match the tool (assets/style.css). */
:root { --desk: #EEF1F4; --paper: #FFFFFF; --fg: #1B1E23; --muted: #4F5762; --rule: #BFD9E6; --line: #D5DAE0;
        --magenta: #C4006A; --cyan: #0083B8; --err: #B3261E; --ok: #1B6B3A;
        --font: "Archivo", "Helvetica Neue", Arial, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html { background: var(--desk); }
body { margin: 0; min-height: 100vh; font: 400 16px/1.5 var(--font); color: var(--fg); background: var(--desk); }
[hidden] { display: none !important; }
.desk { position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 410px; grid-template-rows: auto 1fr auto; column-gap: 40px; padding: 0 clamp(24px, 6.7vw, 96px) 0 0; }

/* the sheet */
.paper { position: absolute; left: -2%; top: -4%; width: 62%; height: 112%; background: var(--paper); transform: rotate(-3deg); transform-origin: 40% 50%; border-radius: 6px;
         box-shadow: 0 30px 70px -30px rgba(27, 30, 35, .35);
         background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule) 35px, var(--rule) 36px); background-position: 0 20px; }
.paper .ml, .paper .mt { position: absolute; background: var(--magenta); }
.paper .ml { left: 16%; top: 0; bottom: 0; width: 3px; }
.paper .mt { left: 0; right: 0; top: 14%; height: 3px; }
.dim { position: absolute; color: var(--cyan); }
.dim b { position: absolute; background: #fff; border: 1.5px solid var(--cyan); border-radius: 6px; padding: 2px 7px; font: 800 13px/1.3 var(--font); white-space: nowrap; }
.dim::before, .dim::after { content: ""; position: absolute; border: 0 solid var(--cyan); }
.dm { left: 0; width: 16%; top: 37%; border-top: 1.5px solid var(--cyan); height: 0; } .dm b { left: 28%; top: -14px; }
.dm::before { left: 0; top: -6px; height: 10px; border-left-width: 1.5px; } .dm::after { right: 0; top: -6px; height: 10px; border-left-width: 1.5px; }
.dv { left: 10%; top: 15%; height: 76%; width: 0; border-left: 1.5px solid var(--cyan); } .dv b { left: -17px; top: 44%; transform: rotate(-90deg); transform-origin: center; }
.dv::before { left: -5px; top: 0; width: 10px; border-top-width: 1.5px; } .dv::after { left: -5px; bottom: 0; width: 10px; border-top-width: 1.5px; }
.dh { left: 16%; width: 80%; bottom: 7%; height: 0; border-top: 1.5px solid var(--cyan); } .dh b { left: 42%; top: -14px; }
.dh::before { left: 0; top: -6px; height: 10px; border-left-width: 1.5px; } .dh::after { right: 0; top: -6px; height: 10px; border-left-width: 1.5px; }
.dp { left: 93%; top: 54%; height: 36px; width: 0; border-left: 1.5px solid var(--cyan); } .dp b { left: 12px; top: 5px; }
.dp::before { left: -5px; top: 0; width: 10px; border-top-width: 1.5px; } .dp::after { left: -5px; bottom: 0; width: 10px; border-top-width: 1.5px; }

.top { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; align-items: center; padding: 40px 0 0 clamp(24px, 6.7vw, 96px); }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -.5px; background: var(--paper); padding: 0 6px; margin-left: -6px; } .logo b { color: var(--magenta); }
.tag { font-size: 15px; font-weight: 600; color: var(--muted); }
.hero { position: relative; grid-column: 1; align-self: center; padding: 40px 0 40px clamp(24px, 14.6vw, 210px); max-width: 880px; }
h1 { margin: 0; font-weight: 800; font-stretch: 80%; font-size: clamp(44px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--magenta); }
.lede { margin: 28px 0 0; max-width: 28em; font-size: 19px; line-height: 1.9; color: #3A3F47; }
.chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14px; font-weight: 700; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1.5px solid var(--cyan); color: var(--cyan); }
.chips li.m { border-color: var(--magenta); color: var(--magenta); }

.card { position: relative; grid-column: 2; align-self: center; background: var(--paper); border-radius: 18px; padding: 30px 32px 32px; box-shadow: 0 40px 80px -36px rgba(27, 30, 35, .45), 0 0 0 1px rgba(27, 30, 35, .06); }
.tabs { display: flex; gap: 6px; background: var(--desk); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.tabs button { flex: 1; appearance: none; border: 0; border-radius: 9px; background: transparent; padding: 11px; font: 700 15px/1.2 var(--font); color: #5A606A; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--fg); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.tabs:not([hidden]) + h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msg { font-size: 14px; line-height: 22px; }
.msg:empty { display: none; }
.msg { padding: 11px 14px; border-radius: 10px; font-weight: 600; margin: 0 0 14px; }
.msg.err { color: var(--err); background: #FCEBEA; border: 1.5px solid #F1B8B4; } .msg.ok { color: var(--ok); background: #E8F5EC; border: 1.5px solid #B7DEC3; }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.msg.err { animation: nudge 360ms; }
.field { margin: 0 0 16px; }
label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #3A3F47; }
input[type="text"], input[type="password"] { width: 100%; height: 50px; padding: 0 15px; font: inherit; font-size: 16px; color: var(--fg); background: #fff; border: 1.5px solid var(--line); border-radius: 11px; }
input[type="text"]:hover, input[type="password"]:hover { border-color: #9AA3AE; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--err); }
.pw { position: relative; } .pw input { padding-right: 68px; }
.show { position: absolute; top: 6px; right: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--cyan); font: 700 14px var(--font); cursor: pointer; }
.lead { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.alt { margin: 16px 0 0; text-align: center; font-size: 14px; }
a { color: var(--cyan); font-weight: 700; text-underline-offset: 3px; }
small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.stay { position: relative; display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; font-size: 14px; font-weight: 600; color: var(--fg); cursor: pointer; }
.stay input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.stay .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #9AA3AE; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.stay input:checked + .box { background: var(--magenta); border-color: var(--magenta); }
.stay input:checked + .box::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.stay input:focus-visible + .box { outline: 3px solid var(--cyan); outline-offset: 2px; }

.primary { width: 100%; height: 54px; border: 0; border-radius: 12px; background: var(--magenta); color: #fff; font: 800 17px var(--font); cursor: pointer; box-shadow: 0 14px 24px -12px rgba(196, 0, 106, .7); }
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .6; cursor: progress; }
.foot { position: relative; grid-column: 2; justify-self: end; padding: 0 0 36px; font-size: 13px; color: #6A717B; }

@media (max-width: 900px) {
  .desk { display: block; padding: 0; }
  .paper { left: 0; top: 0; width: 100%; height: 400px; transform: none; border-radius: 0 0 28px 28px; background-position: 0 14px;
           background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--rule) 27px, var(--rule) 28px); }
  .paper .ml { left: 44px; } .paper .mt { top: 84px; }
  .dv, .dh { display: none; }
  .dm { left: 0; width: 44px; top: 200px; } .dm b { left: 0; top: -26px; font-size: 10px; padding: 0 4px; }
  .dp { left: auto; right: 22px; top: 96px; } .dp b { left: auto; right: 12px; font-size: 11px; }
  .top { position: absolute; left: 0; right: 0; top: 0; padding: 30px 20px 0 64px; } .tag { display: none; }
  .logo { font-size: 24px; margin-left: 0; }
  .hero { position: relative; padding: 126px 24px 0 64px; height: 400px; max-width: none; }
  h1 { font-size: 44px; line-height: 56px; }
  .lede { margin-top: 14px; font-size: 15px; line-height: 28px; } .chips { display: none; }
  .card { margin: -34px 16px 0; padding: 22px 20px; }
  .foot { display: block; grid-column: auto; justify-self: auto; text-align: center; padding: 20px 0 28px; }
}
@media (max-width: 380px) { h1 { font-size: 38px; line-height: 48px; } .card { padding: 20px 16px; } }
input::placeholder { color: #8A919B; opacity: 1; }
