/* Adds-on for the auth + welcome screens. Pairs with app.css. */

.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1.8px solid var(--line);
  border-radius: 16px 18px 14px 19px;
  box-shadow: 4px 5px 0 rgba(47, 40, 31, 0.18);
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
}

body.center {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.brand {
  font-family: var(--scrawl);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 44px);
  line-height: 1;
  text-align: center;
  color: var(--ink);
}
.brand small {
  display: block;
  font-family: var(--note);
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 400;
}
.brand strong { font-weight: 700; color: var(--accent-ink); }

.divider {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--note);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: lowercase;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1.5px;
  background: var(--line); opacity: 0.18;
}

.muted-link {
  text-align: center;
  font-family: var(--note);
  font-size: 13px;
  color: var(--ink-soft);
}
.muted-link a {
  color: var(--accent-ink);
  text-decoration: underline dashed;
}
.muted-link a:hover { color: var(--accent); }

.notice {
  font-family: var(--note);
  font-size: 13.5px;
  padding: 10px 13px;
  border-radius: 11px 13px 10px 14px;
  border: 1.6px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.notice.err {
  background: rgba(196, 106, 47, 0.10);
  border-color: var(--warn);
  color: var(--warn);
}
.notice.hidden { display: none; }

.loading {
  font-family: var(--note);
  font-size: 13px;
  color: var(--accent-ink);
  text-align: center;
}
.loading.hidden { display: none; }

.auth-foot {
  width: 56px; height: 72px;
  display: block;
  margin: 0 auto 6px;
  fill: var(--accent);
}

.auth-gps {
  font-family: var(--note);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  min-height: 18px;
  opacity: 0.8;
}

/* Apple / Google branded buttons — same shape as .btn, custom fills. */
.btn-apple {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fbf8ef;
}
.btn-apple:hover:not(:disabled) { background: #2a2a2a; }
.btn-google {
  background: #ffffff;
  color: #1f2937;
}
.btn-google:hover:not(:disabled) { background: var(--card2); }
.btn-icon {
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* iOS Capacitor test panel — only shown inside the native shell. */
.test-panel {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line);
  opacity: 0.85;
}
.test-panel[hidden] { display: none; }
.test-panel-label {
  font-family: var(--note);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 10px;
}
.test-row { display: flex; gap: 8px; }
.test-btn {
  flex: 1;
  font-family: var(--note);
  font-size: 12px;
  padding: 8px 0;
  background: transparent;
  border: 1.4px dashed var(--line);
  border-radius: 9px 11px 8px 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.test-btn:hover { color: var(--accent); border-color: var(--accent); }

.account-id {
  font-family: var(--note);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0.7;
}
.account-id code { font-family: var(--note); font-size: 11px; }
