/* Sign-in page. No shell, so it only needs the tokens and the reset from base.css. */

body {
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.box {
  width: 100%; max-width: 390px; padding: 36px 32px 30px;
  background: var(--topbar-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  text-align: center;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
}
.lead { margin: 10px 0 26px; color: var(--content-text-dim); font-size: 0.9rem; }
.err {
  background: var(--danger-bg); color: #ffc9c9; border: 1px solid var(--danger);
  border-radius: 8px; padding: 10px 12px; font-size: 0.88rem;
  margin-bottom: 18px; text-align: left;
}
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--success); border-radius: 9999px;
  background: transparent; color: var(--content-text);
  font-size: 0.98rem; font-weight: 600; text-decoration: none;
  transition: background 0.12s ease;
}
.gbtn:hover { background: rgba(0, 132, 64, 0.14); }
.gbtn:active { background: rgba(0, 132, 64, 0.24); }

/* Between Google and the password: a line with "or" on it. */
.or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--content-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.or::before, .or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--surface-border); }

.pw { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pw .control-input { width: 100%; }
.pw .primary-btn { width: 100%; min-height: 48px; }
.pw label { font-size: 0.8rem; color: var(--content-text-dim); }
.pw .hint { margin: -2px 0 4px; font-size: 0.78rem; color: var(--content-text-muted); }
.who { margin: -12px 0 22px; color: var(--content-text-dim); font-size: 0.9rem; }
.who b { color: var(--content-text); }

.foot { margin: 18px 0 0; color: var(--content-text-muted); font-size: 0.78rem; line-height: 1.5; }
.foot a { color: var(--success-text); }
.rule { height: 3px; width: 46px; margin: 22px auto 4px; border-radius: 2px; background: var(--accent); }

@media (max-width: 420px) {
  .box { padding: 28px 20px 24px; }
  .mark { font-size: 1.32rem; }
}
