/* Log in with a code sent by email (login-code.php, login-code.js). The box sits on the login page's dark sheet: white text,
   solid soft fields; no see-through fills or glows. Its field and buttons also carry that page's own classes (.pd-field, .pd-btn in
   login.css): the buttons are drawn only there, and the field's rules there win. Fields are 16px or more, so iPhones don't zoom in
   on them. */
.db-code{display:grid;gap:12px;margin:0;color:#fff;font:400 15px/1.5 "Geist",system-ui,-apple-system,"Segoe UI",sans-serif}
.db-code[hidden],.db-code [hidden]{display:none!important}
.db-code-step{display:grid;gap:12px}
.db-code-field label,.db-code .db-code-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap} /* the placeholder says it */

.db-code input.db-code-email{box-sizing:border-box;width:100%;height:58px;margin:0;padding:0 16px;border:0;border-radius:16px;background:#2E2243;color:#fff;font:400 16px "Geist",system-ui,sans-serif;box-shadow:none}
.db-code input.db-code-email::placeholder{color:#B9B0C9;opacity:1}
.db-code input.db-code-email:focus{outline:2px solid #B99BE8;outline-offset:-2px}
.db-code input.db-code-email:-webkit-autofill{-webkit-text-fill-color:#fff;caret-color:#fff;box-shadow:inset 0 0 0 60px #2E2243}

.db-code-sent,.db-code-again,.db-code-msg{margin:0;color:#B9B0C9;font-size:14px;line-height:1.5}
.db-code-sent,.db-code-again{text-align:center}
.db-code-sent{font-size:15px}
.db-code-sent b{color:#fff;font-weight:600;overflow-wrap:anywhere}

/* Change, send again and "Not you?" read as links */
.db-code .db-code-change,.db-code .db-code-resend,.db-code .db-code-other{display:inline;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;color:#B9B0C9;font:inherit;font-weight:500;text-transform:none;letter-spacing:0;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;box-shadow:none;cursor:pointer}
.db-code .db-code-change:hover,.db-code .db-code-resend:hover,.db-code .db-code-other:hover{text-decoration-color:#fff}
.db-code .db-code-other{justify-self:center;margin-top:-4px;font-size:14px;line-height:1.5} /* under the remembered email, a grid item */
.db-code .db-code-resend:disabled{text-decoration-color:#43365C;cursor:default}
.db-code .db-code-change:focus-visible,.db-code .db-code-resend:focus-visible,.db-code .db-code-other:focus-visible{outline:2px solid #B99BE8;outline-offset:2px;border-radius:4px}

/* The code: one real input over six painted circles (login-code.js copies each digit into its circle). The input keeps typing,
   paste and the phone's one-time-code suggestion; its own text is invisible. The column sets a circle's size: 49px at 375 wide, 40px
   at 320. The ring is inset, so the current circle doesn't move. min-height: a browser without aspect-ratio (iOS 14 and older) would
   otherwise give the row no height, and the input over it none, so no code could be typed. */
.db-code-boxes{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.db-code-cell{display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;aspect-ratio:1;border-radius:50%;background:#2E2243;color:#fff;font:600 clamp(20px,5.8vw,24px)/1 "Geist Mono",ui-monospace,Consolas,monospace;transition:background-color .15s ease,box-shadow .15s ease}
.db-code-cell.is-full{background:#fff;color:#16121F}
.db-code-cell.is-on{box-shadow:inset 0 0 0 2px #B99BE8}
.db-code .db-code-boxes input.db-code-input{position:absolute;inset:0;z-index:1;box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:99px;background:transparent;color:transparent;caret-color:transparent;font-size:16px;letter-spacing:0;box-shadow:none;outline:0;opacity:1;-webkit-text-fill-color:transparent}
.db-code .db-code-boxes input.db-code-input::selection{background:transparent}
/* A phone's autofill paints its own background, and no rule can reset that: the long delay keeps it from ever arriving. !important, or
   the reduced-motion rules' transition:none!important would let it paint over the circles. */
.db-code .db-code-boxes input.db-code-input:-webkit-autofill{-webkit-text-fill-color:transparent;transition:background-color 99999s!important}

.db-code-msg:empty{position:absolute} /* stays rendered so screen readers hear what comes, but out of the grid: a grid row can't shrink for a negative margin */
.db-code-msg{color:#fff;text-align:center}
.db-code-msg.is-error{color:#FFB4AB}
.db-code[aria-busy="true"]{cursor:progress}

@media (prefers-reduced-motion:reduce){
	.db-code *{transition:none!important}
}
