/* The sign-in, in the proportions of the owner's other admin: one 400px column, fields and button 56px tall with soft
   corners, an ink button. A neutral near-white page, no picture and no name. */

.signin-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
}

.signin-column {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 24px 40px;
}

@media (min-width: 640px) {
  .signin-column {
    justify-content: center;
    padding-top: 40px;
  }
}

.signin-mark {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.signin-title {
  margin-top: 64px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .signin-title {
    margin-top: 48px;
  }
}

.signin-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.signin-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signin-input {
  height: 56px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--surface);
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 1px var(--line);
}

.signin-input::placeholder {
  color: var(--ink-3);
}

.signin-input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.code-cells {
  position: relative;
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-cell {
  display: flex;
  flex: 1;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.code-cell.is-focused.is-next {
  box-shadow: 0 0 0 2px var(--accent);
}

.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: text;
  opacity: 0;
  font-size: 16px;
}

.signin-error {
  font-size: 14px;
  color: var(--critical-ink);
}

.signin-notice {
  font-size: 14px;
  color: var(--ink-2);
}

.signin-button {
  height: 56px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--button-ink);
  color: var(--button-text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.signin-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.signin-footer {
  padding-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.signin-footer-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.signin-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  text-underline-offset: 2px;
}

.signin-link:hover {
  text-decoration: underline;
}

.signin-link:disabled {
  opacity: 0.5;
  cursor: default;
}

.boot-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
}
