/* Sign in and create account, in the sky collage style: the collage on the left with a torn right edge,
   the form on white paper on the right. Uses b.css for type, buttons and colours. */
.si { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: #f7f3ea; }
[hidden] { display: none !important; }

/* the picture */
.si-art { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #3f93f2; filter: drop-shadow(6px 0 14px rgba(0, 20, 70, .28)); }
.si-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .45s var(--ease); }
.si-art[data-mode=signin] .si-pic[data-for=signin], .si-art[data-mode=signup] .si-pic[data-for=signup], .si-art[data-mode=forgot] .si-pic[data-for=forgot] { opacity: 1; }
.si-pic[data-for=signin] { transform: scale(1.14); object-position: 50% 40%; }   /* crops the picture's own white border */
.si-kicker { position: absolute; left: 6%; top: 34px; font-family: var(--mono); font-size: 12px; color: var(--ink); background: #f7f3ea; padding: 5px 10px; transform: rotate(-1.4deg); box-shadow: 0 8px 18px -8px rgba(0, 20, 70, .5); }
.si-say { position: absolute; left: 6%; right: 9%; bottom: 104px; display: grid; gap: 10px; justify-items: start; font-family: var(--display); font-size: clamp(30px, 3.5vw, 54px); line-height: 1.34; letter-spacing: -.025em; }
.si-say .l { transform: rotate(-2deg); } .si-say .r { transform: rotate(1.2deg); margin-left: 5%; }
.si-say span span { background: #f7f3ea; color: var(--ink); padding: .04em .26em .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: 0 10px 22px -8px rgba(0, 20, 70, .55); }
.si-foot { position: absolute; left: 6%; bottom: 30px; max-width: 78%; font-size: 12.5px; line-height: 1.4; color: var(--ink); background: #f7f3ea; padding: 7px 11px; transform: rotate(-.6deg); box-shadow: 0 8px 18px -8px rgba(0, 20, 70, .5); }

/* the form side */
.si-main { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; padding: 0 clamp(20px, 5vw, 72px); background: #fff; }
.si-top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.si-back { font-size: 13.5px; color: var(--muted); } .si-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.si-box { align-self: center; width: 100%; max-width: 420px; margin: 24px auto; display: grid; gap: 18px; }
.si-pick { justify-self: start; font-family: var(--mono); font-size: 12px; padding: 5px 10px; background: var(--azure); color: #fff; }
.b .si-box h1 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.04; }
.si-sub { color: var(--muted); font-size: 16px; margin-top: -8px; max-width: 36ch; }

.si-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 2px; background: #eef0f4; margin-top: 4px; }
.si-tabs button { height: 36px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background .15s var(--ease), color .15s var(--ease); }
.si-tabs button:hover { color: var(--ink); }
.si-tabs button[aria-selected=true] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(12, 12, 30, .12); }

#si-provider { display: grid; gap: 18px; }
.si-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; font-size: 14.5px; font-weight: 600; box-shadow: inset 0 0 0 1px #c9cad4; transition: box-shadow .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.si-google:hover { box-shadow: inset 0 0 0 1px var(--ink); background: #fafafc; } .si-google:active { transform: translateY(1px); }
.si-or { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.si-form { display: grid; gap: 16px; }
.si-field { display: grid; gap: 7px; }
.si-field label { font-size: 13px; font-weight: 600; }
.si-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.si-form input { width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px #c9cad4; transition: box-shadow .15s var(--ease); }
.si-form input::placeholder { color: #a3a4b0; }
.si-form input:hover { box-shadow: inset 0 0 0 1px #8d8e9c; }
.si-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.si-form input[aria-invalid=true] { box-shadow: inset 0 0 0 2px #c22b1e; }
.si-pass { position: relative; } .si-pass input { padding-right: 68px; }
.si-show { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.si-show:hover { color: var(--ink); background: #f1f2f6; }
.si-help { font-size: 12.5px; color: var(--muted); }
.si-link { font-size: 13px; font-weight: 600; color: var(--blue); } .si-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.si-error, .si-notice { font-size: 13.5px; padding: 10px 12px; border-left: 3px solid; }
.si-error { color: #9c1f14; background: #fdf0ee; border-color: #c22b1e; }
.si-notice { color: #0a3d8f; background: #edf4ff; border-color: var(--azure); }
.si-submit { width: 100%; height: 48px; justify-content: center; font-size: 15px; border: 0; cursor: pointer; }
.si-submit:disabled { opacity: .7; cursor: progress; }
.si-form input[readonly] { background: #f6f6f9; }
.si-switch { font-size: 13.5px; color: var(--muted); text-align: center; }

.si-next { display: grid; gap: 0; margin-top: 6px; border-top: 1px solid var(--ink); }
.si-next li { display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.si-next span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.si-legal { padding: 18px 0 22px; font-size: 12px; line-height: 1.7; color: var(--muted); text-align: center; }
.si-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } .si-legal a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .si { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .si-art { position: relative; height: 250px; clip-path: none !important; filter: none; }
  .si-kicker, .si-foot { display: none; }
  .si-say { bottom: 16px; left: 14px; right: 14px; font-size: 26px; gap: 6px; }
  .si-pic { object-position: 50% 22%; } .si-pic[data-for=signin] { transform: scale(1.5); transform-origin: 50% 38%; } .si-pic[data-for=signup] { object-position: 50% 12%; }
  .si-main { min-height: 0; } .si-top { height: 60px; } .si-box { margin: 12px auto 24px; }
}
