/* ── Constellation app styles ─────────────────────────────────────
   Design system inherited from tenshu.ai (see DESIGN.md).
   tenshu.ai CSS is loaded via base.html from https://tenshu.ai/static/styles/styles.css
   This file only contains app-specific overrides and auth page styles.
   ──────────────────────────────────────────────────────────────── */

/* ── Auth pages (sign in / sign up) ──────────────────────────────── */

.auth-page {
  min-height: 100vh;
  padding: 6rem 1rem 2rem;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-panel {
  background: var(--charcoal, #202020);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
}

.auth-panel-title {
  font-family: 'Archivo Narrow', 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white, #ffffff);
  margin-bottom: 1.25rem;
}

.auth-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Dark-themed form controls */
.auth-page .form-control,
.auth-panel .form-control,
.auth-page input[type="text"],
.auth-page input[type="email"],
.auth-page input[type="password"],
.auth-panel input[type="text"],
.auth-panel input[type="email"],
.auth-panel input[type="password"] {
  background: var(--black, #000000);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white, #ffffff);
  padding: 0.6rem 0.85rem;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.15s ease;
}

.auth-page .form-control:focus,
.auth-panel .form-control:focus,
.auth-page input:focus,
.auth-panel input:focus {
  background: var(--black, #000000);
  border-color: var(--gold, #ffc000);
  color: var(--white, #ffffff);
  outline: none;
  box-shadow: none;
}

.auth-page .form-control::placeholder,
.auth-panel .form-control::placeholder,
.auth-page input::placeholder,
.auth-panel input::placeholder {
  color: var(--ash, #7d7d7d);
}

.auth-page label,
.auth-panel label {
  color: var(--ash, #7d7d7d);
  font-family: 'Archivo Narrow', 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.auth-page .form-text,
.auth-panel .form-text {
  color: var(--ash, #7d7d7d);
  font-size: 12px;
}

.auth-page .form-check-label,
.auth-panel .form-check-label {
  color: var(--ash, #7d7d7d);
  text-transform: none;
  font-size: 14px;
}

/* Crispy forms overrides */
.auth-page .textinput,
.auth-page .textInput,
.auth-page .passwordinput,
.auth-page .emailinput,
.auth-panel .textinput,
.auth-panel .textInput,
.auth-panel .passwordinput,
.auth-panel .emailinput {
  background: var(--black, #000000) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--white, #ffffff) !important;
}

.auth-page .textinput:focus,
.auth-page .textInput:focus,
.auth-page .passwordinput:focus,
.auth-page .emailinput:focus,
.auth-panel .textinput:focus,
.auth-panel .textInput:focus,
.auth-panel .passwordinput:focus,
.auth-panel .emailinput:focus {
  border-color: var(--gold, #ffc000) !important;
  box-shadow: none !important;
}

/* Auth submit button — gold CTA */
.auth-page .btn-primary,
.auth-panel .btn-primary,
.auth-page button[type="submit"],
.auth-panel button[type="submit"] {
  background: var(--gold, #ffc000);
  color: var(--black, #000000);
  border: none;
  padding: 10px 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  width: 100%;
}

.auth-page .btn-primary:hover,
.auth-panel .btn-primary:hover,
.auth-page button[type="submit"]:hover,
.auth-panel button[type="submit"]:hover {
  background: #917300;
}

/* ── Google OAuth button ─────────────────────────────────────────── */

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: transparent;
  color: var(--white, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
  width: 100%;
}

.btn-google:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white, #ffffff);
  text-decoration: none;
}

.btn-google .google-logo {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--ash, #7d7d7d);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.96px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Links ───────────────────────────────────────────────────────── */

.auth-page a,
.auth-panel a {
  color: var(--ash, #7d7d7d);
  transition: color 0.15s ease;
}

.auth-page a:hover,
.auth-panel a:hover {
  color: var(--white, #ffffff);
}

/* ── Alerts ──────────────────────────────────────────────────────── */

.alert-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px 16px;
  font-size: 14px;
}

/* ── Breadcrumb (builder toolbar) ────────────────────────────────── */

/* Toolbar uses align-items:baseline; the breadcrumb is plain inline text
 * that baseline-aligns with every other text child (dropdown value, tab
 * buttons, mode pills) without needing its own height/padding/line-height. */
.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
}
/* Asymmetric margin: the toolbar's own 16px gap already separates "/"
 * from the dropdown on the right, so we just need breathing room on the
 * left to balance visually. */
.breadcrumb__sep { margin: 0 0 0 12px; color: var(--muted); }
/* (Tom Select alignment override lives in builder.css so it loads after the
 * TS CDN stylesheet and actually wins specificity.) */
.breadcrumb a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep {
  color: var(--muted);
  opacity: 0.6;
  font-size: 16px;
}
/* "Our Platform" dropdown — uses native <details>/<summary> so no JS. */
.nav__platform { position: relative; }
.nav__platform > summary { list-style: none; cursor: pointer; }
.nav__platform > summary::-webkit-details-marker { display: none; }
.nav__platform-menu {
    position: absolute; top: 100%; right: 0;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--charcoal, #202020);
    border-radius: 6px;
    padding: 6px 0; margin-top: 6px; min-width: 160px;
    display: flex; flex-direction: column; gap: 0;
    z-index: 100;
}
.nav__platform-menu a {
    padding: 8px 14px; color: var(--white, #fff);
    text-decoration: none; font-size: 14px;
    transition: background 0.12s;
}
.nav__platform-menu a:hover { background: rgba(255,255,255,0.06); }

/* ── Base layout shell ───────────────────────────────────────────── */

.content--with-nav { padding-top: 64px; }
