:root {
  --ink: #0b1320;
  --panel: #ffffff;
  --panel-2: #f3fbfb;
  --line: rgba(22, 47, 35, 0.12);
  --text: #162f23;
  --muted: #5c6f66;
  --powder: #eefafa;
  --peach: #dff7f7;
  --warm: #3d5e40;
  --lemon: #6cddd9;
  --green: #6e9b79;
  --cyan: #00b7c5;
  --yellow: #b7eceb;
  --red: #c94d5f;
  --pink: #f6d9df;
  --deep-blue: #162f23;
  --forest: #3d5e40;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(108, 221, 217, 0.2), transparent 36%),
    linear-gradient(220deg, rgba(0, 183, 197, 0.12), transparent 42%),
    #f8fcfc;
}

html {
  scroll-behavior: smooth;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.login-view {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 430px);
  gap: 24px;
  align-items: center;
  padding: 36px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(22, 47, 35, 0.96) 0 42%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(108, 221, 217, 0.28), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(0, 183, 197, 0.22), transparent 32%),
    #f8fcfc;
}

.login-view::before,
.login-view::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.login-view::before {
  right: 8%;
  top: 8%;
  width: 240px;
  height: 240px;
  border: 34px solid rgba(108, 221, 217, 0.22);
  border-radius: 50%;
}

.login-view::after {
  left: 48%;
  bottom: 10%;
  width: 170px;
  height: 170px;
  background: rgba(0, 183, 197, 0.14);
  transform: rotate(45deg);
  border-radius: 28px;
}

.login-view > * {
  position: relative;
  z-index: 1;
}

.brand-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  border: 1px solid rgba(108, 221, 217, 0.2);
  background:
    radial-gradient(circle at 86% 16%, rgba(0, 183, 197, 0.24), transparent 30%),
    linear-gradient(135deg, #162f23 0%, #1f4633 52%, #0f241a 100%);
  box-shadow: 0 24px 70px rgba(22, 47, 35, 0.28);
  border-radius: 18px;
}

.brand-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(#162f23, #162f23) padding-box,
    linear-gradient(135deg, var(--cyan), var(--lemon), var(--green)) border-box;
  border: 3px solid transparent;
  font-weight: 900;
  font-size: 23px;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 183, 197, 0.22);
  letter-spacing: 0;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
  flex: 0 0 auto;
}

.system-label,
.eyebrow {
  margin: 0;
  color: var(--deep-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-panel .system-label {
  margin-top: 34px;
  color: var(--lemon);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 10px 0 18px;
  font-size: 70px;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand-panel h1 {
  color: #ffffff;
}

.brand-copy {
  max-width: 680px;
  margin: 0;
  color: #3d4f66;
  font-size: 20px;
  line-height: 1.55;
}

.brand-panel .brand-copy {
  color: rgba(255, 255, 255, 0.82);
}

.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.login-highlights span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(108, 221, 217, 0.16);
  border: 1px solid rgba(108, 221, 217, 0.42);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.name-strip,
.name-box {
  margin-top: 38px;
  padding: 18px;
  border-left: 5px solid var(--cyan);
  background: var(--panel-2);
  border-radius: 12px;
}

.brand-panel .name-strip {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--lemon);
}

.name-strip strong,
.name-box strong {
  display: block;
  color: var(--deep-blue);
  font-size: 22px;
}

.brand-panel .name-strip strong {
  color: #ffffff;
}

.login-card {
  display: grid;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(22, 47, 35, 0.14);
}

.register-card {
  gap: 14px;
}

.login-card h2,
.topbar h2 {
  margin: 8px 0 0;
  font-size: 30px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(108, 221, 217, 0.24);
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.success-message {
  color: var(--forest);
}

.register-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.text-button {
  min-height: auto !important;
  padding: 0 !important;
  color: var(--forest) !important;
  background: transparent !important;
  border-radius: 0 !important;
  justify-self: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-card button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--lemon));
  font-weight: 900;
  border-radius: 12px;
  text-decoration: none;
}

.dashboard-view {
  min-height: 100vh;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 10px 18px;
  background: rgba(22, 47, 35, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 38px rgba(22, 47, 35, 0.18);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 150px;
}

.site-brand strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.site-brand span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.nav-button.page-link {
  display: inline-flex;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-button:hover,
.nav-button.active {
  color: #ffffff;
  background: transparent;
}

.nav-index {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--deep-blue);
  font-size: 10px;
  font-weight: 900;
  border-radius: 6px;
}

.nav-title {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.header-actions strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.secondary-button {
  min-height: 32px;
  color: var(--deep-blue);
  background: var(--peach);
  border: 1px solid rgba(0, 183, 197, 0.24);
}

.danger-button {
  min-height: 32px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #ff6d8b);
}

.header-actions .danger-button {
  min-height: 28px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(108, 221, 217, 0.34);
  border-radius: 999px;
  font-size: 12px;
}

.header-actions .danger-button:hover {
  background: rgba(108, 221, 217, 0.2);
}

.dashboard-stack {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.home-page {
  display: grid;
  gap: 18px;
  padding: 0 0 8px;
}

.intro-section,
.project-section {
  scroll-margin-top: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
  border: 0;
  background:
    radial-gradient(circle at 86% 14%, rgba(108, 221, 217, 0.28), transparent 30%),
    linear-gradient(135deg, #143527 0%, #24523b 54%, #f8fcfc 54%, #f8fcfc 100%);
  border-radius: 0;
  padding: 58px 6vw;
  box-shadow: none;
}

.intro-copy h2,
.project-section h2 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.05;
}

.intro-copy p,
.project-section p,
.info-card p {
  margin: 0;
  color: #3d4f66;
  line-height: 1.55;
}

.project-section .eyebrow {
  color: var(--lemon);
}

.project-section p {
  color: rgba(255, 255, 255, 0.78);
}

.intro-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.intro-copy .eyebrow {
  color: var(--lemon);
}

.intro-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.profile-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 330px;
  color: var(--deep-blue);
  background: #ffffff;
  border: 0;
  border-radius: 26px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 24px 58px rgba(22, 47, 35, 0.16);
}

.profile-panel:hover,
.info-card:hover,
.project-stats div:hover,
.picker-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(22, 47, 35, 0.12);
}

.profile-panel strong {
  font-size: 18px;
}

.profile-panel span {
  color: var(--muted);
  font-weight: 800;
}

.visual-grid {
  position: relative;
  width: 190px;
  height: 170px;
}

.shape {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.shape-a {
  left: 0;
  top: 20px;
  width: 78px;
  height: 78px;
  background: var(--cyan);
  border-radius: 40px 0 0 40px;
}

.shape-b {
  left: 76px;
  top: 22px;
  width: 66px;
  height: 66px;
  background: var(--lemon);
  transform: rotate(45deg);
}

.shape-c {
  right: 0;
  top: 20px;
  width: 74px;
  height: 120px;
  background: var(--green);
  border-radius: 0 46px 46px 0;
}

.shape-d {
  left: 0;
  bottom: 0;
  width: 82px;
  height: 72px;
  border: 13px solid var(--forest);
}

.shape-e {
  left: 82px;
  bottom: 0;
  width: 74px;
  height: 74px;
  color: #ffffff;
  background: var(--deep-blue);
  border-radius: 50%;
  font-size: 24px;
}

.info-grid {
  scroll-margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 18px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(22, 47, 35, 0.08);
}

.overview-strip div {
  min-height: 118px;
  padding: 24px;
  border-left: 1px solid rgba(22, 47, 35, 0.08);
}

.overview-strip div:first-child {
  border-left: 0;
}

.overview-strip strong,
.overview-strip span {
  display: block;
}

.overview-strip strong {
  color: var(--deep-blue);
  font-size: 22px;
}

.overview-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.info-card {
  min-height: 160px;
  padding: 20px;
  border: 0;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(22, 47, 35, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-card span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: var(--deep-blue);
  border-radius: 50%;
  font-weight: 900;
  font-size: 12px;
}

.info-card h3 {
  margin: 14px 0 8px;
  color: var(--deep-blue);
  font-size: 18px;
}

.project-section {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.project-stats div {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 10px;
  background: rgba(223, 247, 247, 0.9);
  border-radius: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-stats strong {
  color: var(--deep-blue);
  font-size: 30px;
}

.project-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-section {
  scroll-margin-top: 62px;
}

.dashboard-hub {
  scroll-margin-top: 72px;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 36px 6vw;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 16%, rgba(108, 221, 217, 0.2), transparent 30%),
    linear-gradient(135deg, #162f23 0%, #24523b 100%);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(22, 47, 35, 0.16);
}

.dashboard-hub .eyebrow {
  color: var(--lemon);
}

.dashboard-hub h2 {
  margin: 6px 0 8px;
  font-size: 34px;
}

.dashboard-hub p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.picker-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.09);
  border: 0;
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.picker-button.active,
.picker-button:hover {
  background: rgba(108, 221, 217, 0.18);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 5px;
}

.dashboard-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-actions .secondary-button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.dashboard-frame {
  min-height: 0;
  padding: 0;
}

.dashboard-section {
  padding: 10px;
  border: 0;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(22, 47, 35, 0.07);
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 96px);
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .login-view {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .brand-panel {
    min-height: auto;
    padding: 30px;
  }

  h1 {
    font-size: 54px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-brand {
    min-width: 0;
  }

  .intro-section,
  .project-section,
  .info-grid,
  .overview-strip {
    grid-template-columns: 1fr;
  }

  .intro-section,
  .project-section {
    background:
      radial-gradient(circle at 86% 14%, rgba(108, 221, 217, 0.28), transparent 30%),
      linear-gradient(135deg, #143527 0%, #24523b 100%);
  }

  .dashboard-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .dashboard-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .login-view {
    padding: 12px;
  }

  .brand-panel,
  .login-card {
    padding: 22px;
  }

  h1 {
    font-size: 42px;
  }

  .brand-copy {
    font-size: 16px;
  }

  .dashboard-nav {
    display: flex;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions {
    width: 100%;
  }

  .intro-section,
  .project-section {
    padding: 14px;
  }

  .intro-copy h2,
  .project-section h2 {
    font-size: 28px;
  }

  .intro-section,
  .project-section {
    padding: 24px;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }

  .secondary-button,
  .danger-button {
    width: 100%;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions strong {
    display: none;
  }

  .header-actions .danger-button {
    width: auto;
    min-width: 78px;
  }

  .nav-button {
    flex-basis: auto;
  }

  .visual-grid {
    transform: scale(0.86);
  }

  .dashboard-picker {
    grid-template-columns: 1fr;
  }
}
