* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden
}

body {
  margin: 0;
  background:
    radial-gradient(900px 700px at 20% 0%, #172125 0%, rgba(23, 33, 37, 0) 60%),
    radial-gradient(900px 700px at 80% 100%, #12191c 0%, rgba(18, 25, 28, 0) 55%),
    #0f1416;
  color: #dfe6e6;
  font-family: "poppins", arial, sans-serif;
  line-height: 1.45
}

a {
  color: #66d19e;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #151b1e;
  border: 1px solid #243035;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  width: 100%;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 10
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #66d19e;
  color: #0f1416;
  font-weight: 700;
  letter-spacing: .5px
}

.brand-title {
  font-size: 18px;
  margin: 0;
  color: #dfe6e6
}

.nav-actions {
  display: flex;
  gap: 8px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none
}

.btn-primary {
  background: #ff8b3e;
  color: #2a1a14;
  border-color: #ff8b3e;
  box-shadow: 0 6px 14px rgba(255, 139, 62, .35)
}

.btn-ghost {
  background: #0f1416;
  color: #dfe6e6;
  border-color: #243035
}

.btn-outline {
  background: transparent;
  color: #66d19e;
  border-color: #66d19e
}

.btn-danger {
  background: transparent;
  color: #e06b6b;
  border-color: #e06b6b
}

.card-panel {
  background: #151b1e;
  border: 1px solid #243035;
  border-radius: 14px;
  padding: 18px
}

.section-title {
  margin: 0 0 14px 0;
  font-size: 17px;
  color: #e7eded
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 360px 1fr;
  grid-template-areas:
    "account stats"
    "form summary"
    "projects projects"
}

.account-card {
  grid-area: account
}

.dashboard-stats {
  grid-area: stats
}

.project-form {
  grid-area: form;
  padding: 18px
}

.project-summary {
  grid-area: summary
}

.project-list {
  grid-area: projects
}

.account-list {
  margin: 0
}

.account-list dt {
  font-weight: 700;
  margin-top: 6px
}

.account-list dd {
  margin: 2px 0 8px 0
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px
}

.stat-item {
  background: #0f1416;
  border: 1px solid #243035;
  border-radius: 10px;
  padding: 12px
}

.stat-label {
  font-size: 12px;
  color: #9aadb2
}

.stat-value {
  font-size: 18px;
  font-weight: 700
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.pill {
  background: #0f1416;
  border: 1px solid #243035;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #c8f0de
}

.form-vertical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-auto-rows: min-content
}

.form-vertical .form-group {
  display: flex;
  flex-direction: column
}

.form-vertical .form-group:nth-child(odd) {
  grid-column: span 1
}

.form-vertical .form-group:nth-child(even) {
  grid-column: span 1
}

.form-vertical .form-group label {
  font-size: 12px;
  color: #9aadb2;
  margin-bottom: 6px
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 6px
}

.input {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #243035;
  background: #0f1416;
  color: #dfe6e6;
  padding: 0 12px;
  font-size: 15px
}

.form-vertical textarea.input {
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  resize: none;
  overflow: auto;
  padding: 12px;
  line-height: 1.45;
  font-size: 15px
}

.table-wrap {
  overflow: auto
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px
}

.table th,
.table td {
  padding: 12px 14px;
  background: #0f1416;
  border: 1px solid #243035
}

.table th:first-child,
.table td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px
}

.table th:last-child,
.table td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px
}

.table thead th {
  color: #cbd5d8;
  font-weight: 700
}

.project-summary .table tbody:empty::after {
  content: "";
  display: block;
  height: 8px
}

.cap {
  text-transform: capitalize
}

.project-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.project-list-grid.tight {
  grid-template-columns: 1fr 1fr
}

.project-card {
  background: #111618;
  border: 1px solid #243035;
  border-radius: 12px
}

.project-content {
  padding: 16px
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.project-title {
  margin: 0;
  font-size: 15px;
  color: #e7eded
}

.project-badge {
  border: 1px solid #243035;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: #0f1416
}

.project-badge.completed {
  color: #c8f0de;
  border-color: #66d19e
}

.project-badge.in-progress {
  color: #d9b56d;
  border-color: #d9b56d
}

.project-badge.planned {
  color: #cbd5d8
}

.project-badge.on-hold {
  color: #e0b7a6
}

.project-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px
}

.chip {
  background: #0f1416;
  border: 1px solid #243035;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: #cbd5d8
}

.project-fields {
  display: grid;
  gap: 6px;
  margin-bottom: 10px
}

.field .label {
  display: block;
  font-size: 12px;
  color: #9aadb2;
  margin-bottom: 4px
}

.project-desc {
  margin: 0;
  color: #dfe6e6
}

.project-inline-edit {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.project-inline-edit .input {
  width: 180px
}

.empty {
  color: #9aadb2;
  margin: 16px
}

.auth-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh
}

.auth-card {
  background: #151b1e;
  border: 1px solid #243035;
  border-radius: 14px;
  padding: 16px;
  min-width: 320px;
  max-width: 420px;
  width: 100%
}

.flash {
  background: #291b1b;
  color: #ffb4b4;
  border: 1px solid #4a2b2b;
  border-radius: 8px;
  padding: 8px;
  margin: 0 0 10px 0
}

.minor {
  color: #9aadb2
}

.hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh
}

.hero-card {
  background: #151b1e;
  border: 1px solid #243035;
  border-radius: 14px;
  padding: 18px 20px;
  max-width: 720px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35)
}

.hero-title {
  margin: 0 0 8px 0;
  font-size: 26px;
  color: #e7eded
}

.hero-sub {
  margin: 0;
  color: #cbd5d8
}

.auth-page,
.auth-page-signup {
  position: relative;
  height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  transform: translateY(-0.5px);
 overflow: hidden;
 top: -17px;
}

.auth-page::before,
.auth-page-signup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 12px;
  z-index: 0
}

.auth-page::before {
  background: url("/img/cute-nook.avif") center/cover no-repeat
}

.auth-page-signup::before {
  background: url("/img/stairs.avif") center/cover no-repeat
}

.auth-card {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  margin: 24px;
  z-index: 1
}

.link {
  color: #66d19e
}

.hero {
  position: fixed;
  width: 100vw;
  top: 72px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0e1113
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/modern-home.avif") center center/cover no-repeat
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(17, 22, 24, .55);
  border: 1px solid #243035;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  z-index: 2
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background-color: #d9b56d;
  border-radius: 4px;
  cursor: pointer
}

@media (max-width:1200px) {
  .page {
    max-width: 100%;
    padding: 20px
  }

  .dashboard-grid {
    grid-template-columns: 340px 1fr;
    gap: 18px
  }

  .project-list-grid {
    grid-template-columns: 1fr 1fr
  }

  .auth-page,
  .auth-page-signup {
    height: calc(100vh - 72px)
  }
}

@media (max-width:900px) {
  .page {
    max-width: 100%;
    padding: 16px
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "account"
      "stats"
      "form"
      "summary"
      "projects"
  }

  .project-form {
    padding: 16px
  }

  .input {
    height: 42px
  }

  .form-vertical {
    grid-template-columns: 1fr
  }

  .form-vertical textarea.input {
    min-height: 130px;
    max-height: 130px
  }

  .project-list-grid,
  .project-list-grid.tight {
    grid-template-columns: 1fr
  }

  .auth-page,
  .auth-page-signup {
    grid-template-columns: 1fr;
    height: calc(100vh - 72px)
  }

  .auth-page::before,
  .auth-page-signup::before {
    width: 100%;
    height: 40vh
  }

  .auth-card {
    grid-column: 1;
    margin: 16px;
    margin-top: calc(40vh - 12px)
  }
}