
body.entry {
  background: var(--surface-alt);
}
.entry-main {
  flex: 1;
  width: 100%;
  max-width: 452px;
  margin: 0 auto;
  padding: var(--s7) var(--s4);
}
.entry-main:has(.entry-wide) {
  max-width: 900px;
}
.entry-main:has(.entry-setup) {
  max-width: 520px;
}
.entry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--s6);
  box-shadow: 0 1px 3px var(--shade-5);
}
.entry-card h1 {
  margin-bottom: var(--s4);
}
.entry-card > form > h1:first-of-type {
  margin-bottom: var(--s4);
}
.entry-lead {
  margin: calc(-1 * var(--s2)) 0 var(--s5);
  color: var(--text);
}
.entry-card .notice {
  margin-bottom: var(--s4);
}
.entry-card .field:last-of-type {
  margin-bottom: var(--s5);
}
.entry-card .btn-block {
  min-height: 44px;
}
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.entry-actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  margin: var(--s4) calc(-1 * var(--s2)) calc(-1 * var(--s2));
}
.entry-links .btn {
  min-height: 40px;
}

.entry-links .btn:first-child:nth-last-child(3) {
  flex-basis: 100%;
}
.entry-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s4);
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}

.join-who {
  margin: calc(-1 * var(--s2)) 0 var(--s4);
  color: var(--text-muted);
}
.join-who strong {
  color: var(--text);
  font-weight: 600;
}


.entry-main:has(> .signin-card) {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 400px);
  grid-template-rows: minmax(0, 38fr) auto auto minmax(0, 62fr);
  justify-content: center;
  padding: var(--s5) var(--s4);
}
.signin-card {
  grid-row: 2;
}
.signin-card h1 {
  margin-bottom: var(--s1);
}
.signin-sub {
  margin: 0 0 var(--s5);
  color: var(--text-muted);
}
.signin-card input {
  min-height: 44px;
}

.entry-card [data-show-password][hidden] {
  display: none;
}

.signin-card .pw-row {
  position: relative;
}
.signin-card .pw-row input {
  padding-right: 68px;
}
.signin-card .pw-row [data-show-password] {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  min-height: 0;
  padding: 0 var(--s3);
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue-dark);
  font-weight: 600;
}
.signin-card .field:last-of-type {
  margin-bottom: var(--s5);
}

.signin-card .signin-keep > .tick {
  display: flex;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
}
.signin-card .signin-keep input[type="checkbox"] {
  min-height: 0;
}

.signin-go .signin-go-busy {
  display: none;
}
.signin-go[aria-busy="true"] {
  -webkit-text-fill-color: initial;
}
.signin-go[aria-busy="true"]::after {
  content: none;
}
.signin-go[aria-busy="true"] > .signin-go-now {
  display: none;
}
.signin-go[aria-busy="true"] > .signin-go-busy {
  display: inline;
  opacity: 1;
}
.signin-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
}
.signin-links a,
.signin-other summary,
.signin-other a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--blue-dark);
  font-weight: 500;
}
.signin-other {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.signin-other summary {
  cursor: pointer;
  color: var(--text-muted);
}
.signin-other[open] summary {
  margin-bottom: var(--s1);
}

.signin-demo {
  grid-row: 3;
  align-self: start;
  margin-top: var(--s5);
  text-align: center;
}
.signin-demo h2 {
  margin: 0 0 var(--s2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.signin-demo ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s1) var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.signin-demo form {
  display: contents;
}
.signin-demo button {
  min-height: 32px;
  padding: 0 var(--s1);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
@media (hover: hover) {
  .signin-demo button:hover {
    background: var(--hover);
  }
}


.code-sent {
  margin: calc(-1 * var(--s2)) 0 var(--s4);
  color: var(--text);
}
.code-input {
  font-size: 1.375rem !important;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.demo-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  margin-bottom: var(--s4);
  padding: var(--s3);
  border-radius: var(--radius);
  background: var(--surface-sunk);
  font-size: 0.8125rem;
}
.demo-code-digits {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

@media print and (max-width: 767px), screen and (max-width: 47.99875em) {
  .entry-main {
    padding: var(--s5) var(--s4);
  }
  .entry-card {
    padding: var(--s5) var(--s4);
  }
  .entry-links .btn {
    min-height: 44px;
  }
}


@media print and (max-width: 639px), screen and (max-width: 39.99875em) {
  .entry-main:has(> .signin-card) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 0 auto auto;
    align-content: start;
    padding: var(--s5) var(--s4);
  }
  .signin-card input {
    font-size: 1rem;
  }
  .signin-links a,
  .signin-other summary,
  .signin-other a,
  .signin-demo button {
    min-height: 44px;
  }
}
