/* ═══════════════════════════════════════════════════════════════════════════
   OSMOS ONE — shared brand surface for the assessment tool.

   Ported from osmos-ai (app/src/client/styles/tokens.css + Main.css):
   violet primary, green success, #0A0E16 canvas, Plus Jakarta Sans / Michroma,
   glass-morphism auth card. Loaded by both login.html and index.html so the
   public login page and the gated tool share one identity.

   Also defines the CONFIDENTIAL treatment (top bar + footer) required on every
   page of this commercial-team tool.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --canvas:        #0A0E16;
  --card:          #11151F;
  --card-glass:    rgba(255,255,255,0.022);
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);

  /* brand palette (raw hex — theme-independent) */
  --brand-green:   #27d796;
  --brand-cyan:    #22d3ee;
  --brand-blue:    #3b82f6;
  --brand-violet:  #7c3aed;
  --brand-magenta: #d946ef;

  /* semantic */
  --primary:        #8B5CF6;
  --primary-bright: #A78BFA;
  --primary-deep:   #7C3AED;
  --success:        #27D796;
  --danger:         #F87171;
  --warning:        #C99A4E;

  /* type */
  --text:      #F8FAFC;
  --text-soft: #CBD5E1;
  --text-mut:  #94A3B8;
  --text-dim:  #7C8AA0;

  /* shape + motion */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --ease: cubic-bezier(.16,1,.3,1);
  --dur:  180ms;
  --shadow: 0 18px 50px -20px rgba(0,0,0,0.6);
  --font:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --display: 'Michroma', var(--font);

  /* signature gradients */
  --gradient-cta:      linear-gradient(135deg, #7c3aed, #27d796);
  --gradient-spectrum: linear-gradient(135deg, #27d796, #22d3ee, #3b82f6, #7c3aed, #d946ef);
}

/* ─── CONFIDENTIAL treatment ───────────────────────────────────────────────
   Slim fixed top bar + footer line. Quiet but always present, since both the
   UI content and the stored data are confidential to the OSMOS commercial team. */

.osmos-confidential-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;                                 /* amber — classification ink */
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.06);
  user-select: none;
}
.osmos-confidential-bar::before { content: "🔒"; font-size: 12px; }
.osmos-confidential-bar .dot { opacity: 0.5; }

/* push page content below the fixed bar */
.osmos-has-confidential-bar { padding-top: 30px; }

.osmos-confidential-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 22px 16px 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.osmos-confidential-foot strong { color: #fbbf24; font-weight: 600; }

/* ─── AUTH (login.html) ────────────────────────────────────────────────────
   Dark brand auth surface + glass card, mirroring osmos-ai AuthPageLayout. */

.osmos-auth-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  background: #080B14;
  background-image:
    radial-gradient(900px 700px at 98% 5%,  rgba(124,58,237,0.16), transparent 65%),
    radial-gradient(700px 600px at 0%  95%, rgba(39,215,150,0.10), transparent 65%),
    radial-gradient(600px 400px at 30% 20%, rgba(167,139,250,0.06), transparent 55%);
}

.osmos-glass-card {
  width: 100%;
  max-width: 412px;
  background: rgba(18,24,41,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 42px 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: var(--text-mut);
}

.osmos-auth-logo { display: block; height: 40px; margin: 0 auto 22px; }

.osmos-auth-title {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}
.osmos-auth-sub {
  font-size: 13.5px;
  color: var(--text-mut);
  text-align: center;
  margin-bottom: 24px;
}

.osmos-field { margin-bottom: 16px; }
.osmos-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.osmos-field input {
  display: block;
  width: 100%;
  height: 50px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-family: var(--font);
  font-size: 15px;
  padding: 0 16px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.osmos-field input:focus {
  border-color: rgba(167,139,250,0.6);
  background: rgba(167,139,250,0.06);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.12);
}

.osmos-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 13px;
  border: none;
  background: var(--gradient-cta);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 14px 30px -10px rgba(124,58,237,0.4);
  transition: transform .15s, box-shadow .25s, filter .2s;
}
.osmos-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.osmos-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.osmos-auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-mut);
  margin-top: 18px;
}
.osmos-auth-switch a { color: var(--primary-bright); text-decoration: none; cursor: pointer; }
.osmos-auth-switch a:hover { color: #c4b5fd; }

.osmos-banner {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.osmos-banner.error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.osmos-banner.success { background: rgba(39,215,150,0.12); border: 1px solid rgba(39,215,150,0.3); color: #6ee7b7; }
.osmos-banner.info    { background: rgba(167,139,250,0.12);border: 1px solid rgba(167,139,250,0.3); color: #c4b5fd; }

.osmos-trust {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 22px;
}
.osmos-foot {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 18px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.hidden { display: none !important; }
