/* Page styles for signin, from ui-prototypes/mobile-sign-in/index.html on the design branch. */
.view { padding: 14px var(--gutter) 0; }
.view[hidden], .opening[hidden] { display: none !important; }
.page-lead {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.page-lead b { color: var(--ink); font-weight: 650; }

.opening {
  margin: 0 0 18px;
  padding: 12px var(--card-inset);
  background: var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.opening span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.opening b {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 650; color: var(--muted); }
.field input {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  padding: 12px;
  font-size: 16px;
  background: var(--field);
  width: 100%;
}
.field input[aria-invalid="true"] { border-color: var(--urgent); }
.field input.code {
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.form-error {
  color: var(--urgent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 18px;
  margin: -4px 0 10px;
}
.ghost {
  width: 100%;
  margin-top: 8px;
  min-height: var(--touch-min);
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.ghost + .ghost { margin-top: 0; }
.fine {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.invites {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.invites li { padding: 12px var(--card-inset); }
.invites li + li { border-top: 1px solid var(--line); }
.invites b {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.invites span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}
.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.agree input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--accent);
}
.agree b { display: block; font-weight: 650; }
.agree small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.button--danger { background: var(--urgent); color: var(--light-oat); }

.choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.choices button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: var(--radius-button);
  min-height: 52px;
  padding: 10px 12px;
  font-size: 16px;
}
.choices button small { display: block; color: var(--muted); font-size: 13px; }
.choices button:active { background: var(--pressed-strong); }
.choices button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--light-oat); }
.choices button[aria-pressed="true"] small { color: var(--light-oat); }

a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a.button[hidden] { display: none; }

.waiting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}
.waiting i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

