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

:root {
  --navy: #0d2e4f;
  --orange: #d3441c;
  --gray-50: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --white: #fff;
  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------- layout ---------- */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header img {
  height: 75px;
  width: auto;
}

.site-header nav a {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-left: 1.5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---------- login ---------- */

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

body:has(.login-wrapper) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card img {
  height: 40px;
  margin-bottom: 1.5rem;
}

.login-card h1 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.login-card p.subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.login-card .error {
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

.login-card .error.visible {
  display: block;
}

.login-card label {
  display: block;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--orange);
}

.login-card button {
  width: 100%;
  padding: 0.7rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.15s;
}

.login-card button:hover {
  background: #b8391a;
}

/* ---------- resources page ---------- */

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.container > h1 {
  margin-bottom: 0.5rem;
}

.intro {
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 640px;
}

.step-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.step-bar-arrow {
  opacity: 0.5;
}

.step-section {
  margin-bottom: 2.5rem;
}

.step-section h2 {
  font-size: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-desc {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.resource-list {
  list-style: none;
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-list > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.resource-card {
  flex-shrink: 0;
  width: 5.5rem;
  height: 4rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.resource-card-link {
  transition: border-color 0.15s, box-shadow 0.15s;
}

.resource-card-link:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 6px rgba(211, 68, 28, 0.12);
  text-decoration: none;
}

.file-icon {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.resource-video {
  flex-direction: column;
  gap: 0.5rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.resource-text {
  display: flex;
  flex-direction: column;
  padding-top: 0.25rem;
}

.resource-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.3;
}

a.resource-title:hover {
  color: var(--orange);
  text-decoration: underline;
}

.resource-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin-top: 0.125rem;
}

.closing {
  color: var(--gray-500);
  font-style: italic;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  margin-top: 1rem;
  max-width: 640px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.site-footer .legal {
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap");
