/* PrivateHub v3000 — components.css
   Reusable UI components. Kept small and disciplined. */

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-bright); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 9px;
}
.btn-ghost:hover { color: var(--text); }

.btn-full { width: 100%; }

/* ─── Inputs ────────────────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.input-label {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input:focus {
  border-color: var(--gold);
  background: var(--surface);
}
.input::placeholder { color: var(--dim); }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

/* ─── Toast ─────────────────────────────────────────────── */
.toast {
  pointer-events: auto;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-md);
  animation: toast-in 200ms ease-out;
  max-width: 360px;
  text-align: center;
}
.toast.toast-success { background: var(--teal); color: var(--bg); }
.toast.toast-error   { background: var(--rose); color: #fff; }
.toast.toast-info    { background: var(--gold); color: var(--bg); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Login screen ────────────────────────────────────────
   v5000.85 — flex-direction: column so the BACK button can sit BELOW
   the login card in a clean vertical stack. Previously the row layout
   put the back-link beside the card, which looked broken when the
   card had no natural left-neighbour. */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: var(--sp-5);
  background: radial-gradient(ellipse at top, rgba(200,168,75,0.06) 0%, transparent 60%), var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}
.login-brand {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-align: center;
  margin-bottom: var(--sp-3);
}
.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.login-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-bottom: var(--sp-6);
}
.login-footer {
  margin-top: var(--sp-5);
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.login-footer a { color: var(--gold); }

/* ─── Shell ─────────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.shell-brand {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}
.shell-brand:hover {
  opacity: 0.85;
}
.shell-brand::after {
  content: " \25BE";
  opacity: 0.55;
  margin-left: 3px;
  font-size: 0.95em;
}
.shell-body {
  flex: 1;
  padding: var(--sp-5);
}
.shell-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.shell-user-name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text);
}
.shell-user-role {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
