/* The sign-in dialog. Everything structural comes from dvs.css; this is
   only what the dialog needs that the workbench's modals do not. */
/* 440px was the whole of it, and on a phone the create-account step — email,
   password and its hint, name, organisation and its hint, the terms
   checkbox, the button, the switch line — is taller than the screen. With no
   height limit and no scroller the dialog simply ran off the bottom: the
   button could not be reached, and nothing scrolled because the body behind
   is locked. min() keeps the desktop width exactly as it was and lets the
   box shrink inside a narrow viewport; the max-height and overflow-y give it
   somewhere to scroll when the content is still taller than the screen, which
   at 375x667 with the keyboard up it is. */
.ov { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.ov-brand { display:flex; align-items:center; gap:9px; margin-bottom:2px; }
.ov-brand img { width:22px; height:22px; }
.ov-brand b { font-size:15px; font-weight:600; letter-spacing:-.2px; }
.ov .modal__title { font-size:22px; }
.ov .modal__text, .ov .modal__note { font-size:14px; }
.ov .field > label { font-size:13px; display:flex; justify-content:space-between; }
.ov .input { font-size:15px; padding:10px 12px; }
.ov-hint { font-size:12.5px; color:var(--muted); }
.ov-hint code { font-family:var(--mono); }
.ov-check { display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--ink-2); }
.ov-check input { margin-top:3px; }
.ov-code { font:500 22px var(--mono); letter-spacing:.35em; text-align:center; }
.ov-submit { width:100%; font-size:15px; padding:11px 16px; }
.ov-submit[disabled] { opacity:.6; }
.ov-link { border:0; background:none; color:var(--accent); font:inherit; font-size:13px; padding:0; cursor:pointer; }
.ov-error { margin:0; padding:9px 11px; border-radius:6px; font-size:13.5px;
            background:var(--fail-tint); border:1px solid #f2d6d3; color:var(--fail); }
.ov-foot { font-size:12.5px; color:var(--muted); }
/* The only link out of a modal whose every sibling is inert. Quiet, but a
   link and not a sentence — see the comment in overlay.html. */
.ov-out { display:inline-block; margin-left:6px; color:var(--accent); }
/* The workbench underneath is scenery while the dialog is open. */
body.ov-locked > :not(#dvs-signin) { pointer-events:none; user-select:none; }
/* And it reads as scenery: a little darker and softly out of focus, so the
   eye lands on the dialog and the example set behind it is a backdrop rather
   than a half-read table (a tester's review, 7 Oct 2026). Only this dialog's
   backdrop: dvs.css's own, rgba(13,23,38,.28) and sharp, is every workbench
   modal's and stays as it is. A browser without backdrop-filter just gets
   the darker tint. */
#dvs-signin .modal__backdrop { background: rgba(13, 23, 38, .40);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* THE FULL PAGE, from 15 October 2026 (the owner's pick of the split sign-in
   mock-up). From 900px wide the dialog fills the window: on the left the dark
   half of dvs.css's .split__dark with the website's hero line and picture, on
   the right the same form on white. Narrower than that the side is hidden and
   .ov-main lays out as if it were not there, so every rule above — the phone
   height fix included — applies exactly as before. */
.ov-side { display: none; }
.ov-main { display: contents; }
@media (min-width: 900px) {
  #dvs-signin .modal__backdrop { background: var(--surface); align-items: stretch; justify-content: stretch;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  #dvs-signin .ov { width: 100%; max-width: none; height: 100dvh; max-height: none;
    border-radius: 0; box-shadow: none; flex-direction: row; overflow: hidden; }
  .ov-side { display: flex; flex-direction: column; flex: 0 0 46%; min-width: 0; box-sizing: border-box;
    padding: 48px 46px; overflow: hidden; color: #dbe7f2;
    background: linear-gradient(160deg, #0d1726 0%, #16243a 60%, #12314c 100%); }
  .ov-side__brand { display: flex; align-items: center; gap: 12px; }
  .ov-side__brand img { display: block; width: 28px; height: 28px; }
  .ov-side__brand .ov-side__word { width: auto; height: 16px; }
  .ov-side__eyebrow { margin: 64px 0 0; font: 500 13px/1.4 var(--mono); letter-spacing: .16em;
    text-transform: uppercase; color: var(--dark-accent); }
  .ov-side__title { margin: 16px 0 0; max-width: 470px; font-size: 44px; line-height: 1.15;
    font-weight: 600; letter-spacing: -.8px; color: #fff; }
  .ov-side__title span { color: var(--dark-accent); }
  .ov-side__figure { flex: 1 1 auto; min-height: 0; margin: 0; padding: 28px 0;
    display: flex; align-items: center; justify-content: center; }
  .ov-side__figure img { display: block; width: 100%; max-width: 600px; height: auto; max-height: 100%;
    object-fit: contain; opacity: .94; }
  .ov-side__foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
    font-size: 14px; color: var(--dark-text); }
  .ov-side__caption { flex: 1; font: 12px var(--mono); letter-spacing: .04em; }
  .ov-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; overflow-y: auto; }
  .ov-main .modal__body { flex: 1 0 auto; justify-content: center; box-sizing: border-box;
    width: min(488px, 100%); margin: 0 auto; padding: 48px 24px; overflow: visible; gap: 18px; }
  .ov-main .ov-foot { padding: 18px 48px; background: var(--surface); border-top: 1px solid var(--line);
    line-height: 1.55; }
  .ov-main .ov-out { flex: 0 0 auto; white-space: nowrap; }
  /* The side shows the brand; the form's own line stays, for screen readers. */
  .ov .ov-brand { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .ov .modal__title { font-size: 30px; }
  .ov .modal__text { font-size: 17px; }
  .ov .modal__note { font-size: 15.5px; }
  .ov .field > label { font-size: 15.5px; }
  .ov .input { font-size: 17px; padding: 11px 12px; }
  .ov-submit { font-size: 17px; padding: 13px 16px; }
  .ov-link { font-size: 15px; }
}
