:root {
  --navy: #0a1628;
  --navy-2: #10243f;
  --primary: #0b4f8a;
  --accent: #1565a8;
  --ink: #0b1b33;
  --muted: #5d6f8b;
  --line: #e3eaf3;
  --bg: #f5f8fc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 23, 43, 0.06), 0 8px 24px rgba(8, 23, 43, 0.07);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  padding: 2.5rem 1.5rem;
  margin: 0 auto;
}

.brandbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--primary) 140%);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin: 0 0 1.35rem;
  box-shadow: var(--shadow);
}

.logo {
  display: block;
  height: 42px;
  width: auto;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: -0.022em;
}

.tagline {
  margin: 0.35rem 0 1.1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 650;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.login-shell {
  max-width: 26rem;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}

.login-card input {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid #cfdae8;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.login-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.login-card .cta {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fdecec;
  border: 1px solid #f3c4c4;
  color: #a32020;
  font-size: 0.9rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.logout-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.logout-link:hover {
  color: var(--ink);
}
