/* Minimal self-contained styles for /auth + /profile. Matches the
 * Apple-style restrained palette used across ShowRing surfaces. */

:root {
  --text: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #86868b;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --border: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --danger: #c41e3a;
  --success: #1a7f37;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}

input[name="otp"] {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 24px;
  letter-spacing: 6px;
  text-align: center;
}

button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: var(--accent-hover); }
button:disabled { background: var(--text-tertiary); cursor: wait; }

button.ghost {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  padding: 8px;
}
button.ghost:hover { background: transparent; text-decoration: underline; }

.passkey-divider {
  margin: 16px 0 10px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}
.passkey-divider::before,
.passkey-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.passkey-divider::before { left: 0; }
.passkey-divider::after { right: 0; }

button.danger {
  background: var(--danger);
}
button.danger:hover { background: #b81831; }

.hint {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 12px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(196, 30, 58, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(196, 30, 58, 0.15);
}

.success {
  color: var(--success);
  font-size: 14px;
  margin-top: 12px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }

.row .meta {
  flex: 1;
  min-width: 0;
}
.row .meta strong { display: block; font-size: 15px; font-weight: 500; }
.row .meta small { color: var(--text-tertiary); font-size: 12px; }

.pill {
  display: inline-block;
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text-secondary);
}
.pill.current { background: rgba(26, 127, 55, 0.12); color: var(--success); }

.section {
  margin-top: 28px;
}
.section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin: 0 0 12px;
  font-weight: 600;
}

.hidden { display: none !important; }
