/* Ways to sign in, the extra steps of the sign-in and welcome pages, and the rules for signing in. */
/* Sign in and set up: the forest side with the lockup and the emblem, the form on paper. One column on a phone. */
.auth.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); place-items: stretch; padding: 0; }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; padding: var(--s6); background: var(--rail); color: var(--rail-ink); overflow: hidden; }
.auth-side .wordmark { position: relative; color: var(--rail-ink); }
.auth-side .wordmark i { border-left-color: var(--rail-line); color: var(--rail-ink-2); font-size: var(--t-lg); }
.auth-side .emblem { position: absolute; right: -120px; bottom: -140px; width: min(560px, 130%); height: auto; aspect-ratio: 1; opacity: 0.09; pointer-events: none; }
.legal { position: relative; color: var(--rail-ink-2); font-size: var(--t-sm); }
.auth.split main { align-self: center; justify-self: center; gap: var(--s6); width: 100%; max-width: 360px; margin: var(--s7) var(--s6); padding: 0; border: 0; background: none; box-shadow: none; }
.auth.split form, .auth.split section { gap: var(--s4); }
.auth.split .lede { margin-top: calc(var(--s2) * -1); margin-bottom: var(--s3); }
.auth.split .btn-primary { width: 100%; margin-top: var(--s2); }
.auth-mark, .auth-legal { display: none; }
.lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.lbl-row .linkish { font-size: var(--t-sm); }
.or { display: flex; align-items: center; gap: var(--s3); color: var(--ink-3); font-size: var(--t-xs); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 760px) {
  .auth.split { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth.split main { align-self: start; margin: var(--s5) auto; padding: 0 var(--s4); }
  .auth-mark { display: inline-flex; margin-bottom: var(--s6); }
  .auth-mark img { height: 22px; }
  .auth-legal { display: block; margin-top: var(--s6); color: var(--ink-3); }
}
.other-ways { display: grid; gap: var(--s3); }
.other-ways .btn { width: 100%; justify-content: center; text-decoration: none; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); margin: var(--s4) 0; padding-left: 1.6em; color: var(--ink); font: 400 var(--t-md)/1.4 var(--mono); letter-spacing: 0.04em; }
.ways .tbl.passkeys .tr { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.ways .tbl.plain .tr { grid-template-columns: minmax(0, 1fr) auto; }
.form-page .form { max-width: 560px; }
/* The settings pages (sign-in rules, system settings) set their ticks roomier. Only there. */
.form-page .check { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s2) 0; font-size: var(--t-md); }
.form-page .check input { margin-top: 3px; flex: none; }
.form-page .check small { display: block; color: var(--ink-3); font-size: var(--t-sm); }
.form-page .checks { display: grid; gap: 2px; margin: var(--s3) 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-control); }
.form-page .checks legend { padding: 0 var(--s2); color: var(--ink-2); font-size: var(--t-sm); }
.tbl.directory { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-control); }
.tbl.directory .tr { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); cursor: pointer; }
@media print {
  /* Printing the recovery codes prints the codes and nothing else. */
  body.auth main > :not(#step-recovery), .dlg header .iconbtn, .form-acts, .acts { display: none !important; }
}
/* Touch: the logo above the form takes a 44px high tap, in the same place. */
@media (pointer: coarse) {
  .auth-mark { position: relative; }
  .auth-mark::after { content: ""; position: absolute; inset: -9px 0; }
}
