/* Shared styles for /access, /auth-verify, /dashboard. */

:root {
  --bg-deep: #060911;
  --bg-card: #0f1420;
  --bg-elevated: #1a2235;
  --border: #1e293b;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --green: #10b981;
  --red: #ef4444;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', -apple-system, system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

header.brand {
  margin-bottom: 32px;
  text-align: center;
}
header.brand a {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
p.lead { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s;
}
.field input:focus { outline: none; border-color: var(--accent); }

button.primary, .btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
button.primary:hover { background: var(--accent-dim); }
button.primary:disabled { opacity: 0.6; cursor: wait; }

button.secondary, .btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}
button.secondary:hover { color: var(--text); border-color: var(--text-muted); }

.error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--red);
  border-radius: 6px;
  font-size: 13px;
}

.success {
  display: none;
  background: rgba(16, 185, 129, 0.08);
  color: var(--green);
  padding: 16px 20px;
  border-radius: 8px;
}

.kbd {
  font-family: 'DM Mono', 'Menlo', monospace;
  font-size: 12px;
  background: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.api-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  word-break: break-all;
}
.api-key-row span { flex: 1; }

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-deep);
  border-radius: 5px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tabs button {
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

pre.code-sample {
  background: var(--bg-deep);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: 'DM Mono', 'Menlo', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.code-block { position: relative; }
.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.muted { color: var(--text-muted); font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.upgrade-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.upgrade-card a.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}

footer.note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  main { padding: 32px 16px; }
  h1 { font-size: 24px; }
}
