/* ============================================================
   base.css — reset, CSS variables, typography
   Web Oshkosh Aurora Design System — Dashboard Edition
   ============================================================ */

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

:root {
  /* ── Brand Colors ── */
  --accent:         #00d1ff;
  --accent-dark:    #4cd6ff;
  --accent-dim:     rgba(0, 209, 255, 0.12);
  --accent-glow:    rgba(0, 209, 255, 0.2);

  /* ── Surfaces ── */
  --bg:             #0e1322;
  --bg-deep:        #090e1c;
  --card-bg:        rgba(26, 31, 47, 0.8);
  --card-border:    rgba(164, 230, 255, 0.08);

  /* ── Sidebar ── */
  --sidebar-bg:     #090e1c;
  --sidebar-text:   #bbc9cf;
  --sidebar-hover:  rgba(0, 209, 255, 0.06);
  --sidebar-active: #00d1ff;

  /* ── Text ── */
  --text:           #dee1f7;
  --text-muted:     #859399;
  --text-subtle:    #3c494e;

  /* ── Borders ── */
  --border:         rgba(164, 230, 255, 0.08);
  --border-subtle:  rgba(164, 230, 255, 0.05);

  /* ── Semantic ── */
  --danger:         #ffb4ab;
  --danger-dark:    #ff8a80;
  --success:        #4ade80;
  --warning:        #ffd59c;
  --info:           #a4e6ff;

  /* ── Spacing / Shape ── */
  --radius:         6px;
  --radius-lg:      10px;
  --shadow:         0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.5);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #3c494e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ── */
::selection { background: var(--accent); color: #001f28; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

p {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* ── Auth pages ── */
.auth-page {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 209, 255, 0.08) 0%, transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: rgba(26, 31, 47, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 209, 255, 0.04);
  padding: 2rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo h1 {
  color: var(--text);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.auth-logo h1 span {
  color: var(--accent);
}

.auth-logo p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.input-password-wrap {
  position: relative;
}

.input-password-wrap input {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.15s;
}

.password-toggle:hover {
  color: var(--text);
}

.password-requirements {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.password-requirements li {
  padding: 0.15rem 0 0.15rem 1.25rem;
  position: relative;
}

.password-requirements li::before {
  content: '○';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

.password-requirements li.met {
  color: var(--success);
}

.password-requirements li.met::before {
  content: '✓';
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.form-success {
  color: var(--success);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
