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

:root {
  --ink: #0b1d2c;
  --ink-soft: #243b4a;
  --sun: #f5b645;
  --sun-strong: #f08c2e;
  --sky: #e4f3ff;
  --water: #c8e7ff;
  --stone: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(11, 29, 44, 0.12);
}

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

body {
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7e8 0%, #fdf9f2 35%, #f7fbff 100%);
  position: relative;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(245, 182, 69, 0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 231, 255, 0.6), transparent 55%),
    radial-gradient(circle at 30% 80%, rgba(240, 140, 46, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 8vw 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.ghost-btn {
  border: 1px solid rgba(11, 29, 44, 0.2);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.container {
  padding: 24px 8vw 40px;
  display: grid;
  place-items: center;
  gap: 16px;
}

.card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  width: min(520px, 100%);
  animation: floatIn 0.8s ease;
}

.portal .card {
  width: 100%;
}

.card-head h1 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.login-logo {
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.login-logo .brand-logo {
  height: 56px;
  max-width: 260px;
}

.card-head p {
  color: var(--ink-soft);
}

.form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 29, 44, 0.18);
  font-size: 1rem;
  background: var(--stone);
}

.primary-btn {
  background: linear-gradient(120deg, var(--sun), var(--sun-strong));
  color: var(--white);
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.form-foot {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.portal {
  width: min(980px, 100%);
  display: grid;
  gap: 24px;
  animation: floatIn 0.8s ease;
}

.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-head h2 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.portal-head p {
  color: var(--ink-soft);
}

.badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sky);
  font-weight: 700;
  text-transform: capitalize;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.status-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status-title {
  font-weight: 700;
}

.status-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.status-pill {
  align-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.pill-progress { background: #fff4db; color: #9a5f09; }
.pill-complete { background: #e1f7e9; color: #1a7a3a; }
.pill-hold { background: #ffe6e6; color: #a12a2a; }

.progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.step {
  font-size: 0.74rem;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: center;
  background: #f4f6f9;
  color: #7b8794;
  border: 1px solid rgba(11, 29, 44, 0.08);
}

.step--active {
  background: #fff3dc;
  color: #6a4209;
  border-color: rgba(240, 140, 46, 0.4);
}

.insight {
  width: 100%;
}

.insight h3 {
  font-family: "Fraunces", serif;
  margin-bottom: 12px;
}

.action-list {
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  list-style: none;
}

.site-footer {
  padding: 20px 8vw 30px;
  text-align: center;
  color: var(--ink-soft);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .portal-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
