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

body {
  font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  background-color: #f4f5f6;
  color: #1a1a1a;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Header — charcoal base, silver accent (executive portal palette) ── */
header {
  background-color: #1a1a1a;
  color: #94a3b8;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: auto;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
}

header h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

header p {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-logout {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid #64748b;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-logout:hover { color: #94a3b8; border-color: #94a3b8; }

/* ── Login page ── */
.login-body { display: flex; flex-direction: column; }

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(30,41,59,0.07), 0 4px 20px rgba(30,41,59,0.06);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.login-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.login-sub {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1.5rem;
}

#g-btn-wrap {
  display: flex;
  justify-content: center;
}

/* ── Messages ── */
.message {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.message.hidden { display: none; }
.message.error {
  background: #ffebee;
  color: #b71c1c;
  border-left: 4px solid #f44336;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  header h1 { font-size: 1.25rem; }
  .login-card { padding: 1.5rem 1rem; }
}
