/* ═══ SmartSiteOps — Shared Design Tokens ═══
   Duplicated from app.html's embedded styles.
   Used by: index.html, login.html, signup.html
   NOT used by: app.html (keeps its own embedded copy)
*/

:root {
  --rfs-deep: #0F2A44;
  --rfs-cyan: #2ED3E6;
  --rfs-cyan-dim: rgba(46,211,230,0.12);
  --rfs-orange: #FF7A18;
  --rfs-orange-dim: rgba(255,122,24,0.10);
  --rfs-green: #10B981;
  --rfs-green-dim: rgba(16,185,129,0.10);
  --rfs-red: #EF4444;
  --rfs-yellow: #F59E0B;
  --rfs-purple: #8B5CF6;
  --rfs-border: #E2E5EA;
  --rfs-bg: #F7F8FA;
  --rfs-font: 'DM Sans', system-ui, sans-serif;
  --rfs-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--rfs-font);
  background: var(--rfs-bg);
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--rfs-font); cursor: pointer; }
input { font-family: var(--rfs-font); }

/* ═══ Shared Header ═══ */
.sso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 64px;
  background: var(--rfs-deep);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sso-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.sso-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.08); }

.nav-btn {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: var(--rfs-cyan);
  color: var(--rfs-deep);
  transition: opacity 0.15s;
}
.nav-btn:hover { opacity: 0.88; }

/* ═══ Shared Footer ═══ */
.sso-footer {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  background: var(--rfs-deep);
}
.sso-footer a { color: var(--rfs-cyan); }
.sso-footer a:hover { text-decoration: underline; }

/* ═══ Shared Auth Card (login/signup) ═══ */
.auth-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46,211,230,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,122,24,0.04) 0%, transparent 60%),
    var(--rfs-bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(15,42,68,0.08), 0 1px 3px rgba(15,42,68,0.06);
  border: 1px solid var(--rfs-border);
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rfs-deep);
  margin-bottom: 4px;
}

.auth-card .subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--rfs-border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--rfs-bg);
}
.form-group input:focus {
  border-color: var(--rfs-cyan);
  box-shadow: 0 0 0 3px var(--rfs-cyan-dim);
}

.form-error-inline {
  font-size: 12px;
  color: var(--rfs-red);
  margin-top: 4px;
  display: none;
}

.auth-submit {
  width: 100%;
  padding: 11px 0;
  border: none;
  border-radius: 8px;
  background: var(--rfs-cyan);
  color: var(--rfs-deep);
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
  transition: opacity 0.15s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: #6b7280;
}
.auth-footer a { color: var(--rfs-cyan); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.flash-msg {
  background: var(--rfs-green-dim);
  color: var(--rfs-green);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}

.error-banner {
  background: rgba(239,68,68,0.08);
  color: var(--rfs-red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}
