:root {
  color-scheme: light;
  --ink: #071013;
  --graphite: #1d272b;
  --muted: #607076;
  --line: #d9e1df;
  --paper: #f5f8f3;
  --white: #ffffff;
  --mint: #63ee9a;
  --mint-dark: #18a76b;
  --blue: #2f5fdd;
  --amber: #e88b3a;
  --shadow: 0 24px 70px rgba(7, 16, 19, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(99, 238, 154, 0.08) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(47, 95, 221, 0.06) 0 1px, transparent 1px 72px),
    var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.login-body {
  background: var(--ink);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 42px;
  padding: clamp(28px, 6vw, 68px);
  background: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-stack {
  display: grid;
  gap: 18px;
  width: min(100%, 280px);
}

.brand-mark {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand-lettering {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-copy {
  display: grid;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.login-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.login-copy p:last-child {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 750;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: #fbfdfb;
  outline: none;
}

.login-form input:focus {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 4px rgba(99, 238, 154, 0.18);
}

.login-form button,
.ghost-button,
.open-link {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.login-form button {
  margin-top: 8px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.login-form button:hover {
  background: #122227;
}

.form-error {
  color: #b42318;
  font-size: 0.92rem;
}

.brand-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(30px, 7vw, 90px);
  background:
    linear-gradient(135deg, rgba(99, 238, 154, 0.18), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 72px),
    #071013;
  overflow: hidden;
}

.brand-stage-inner {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 34px;
  color: var(--white);
  text-align: center;
}

.brand-stage-inner img {
  width: min(420px, 78vw);
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 32px 80px rgba(255, 255, 255, 0.18))
    drop-shadow(0 0 42px rgba(99, 238, 154, 0.12));
}

.brand-stage-inner p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.5;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(7, 16, 19, 0.08);
  backdrop-filter: blur(18px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.topbar-brand img:first-child {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.topbar-brand img:last-child {
  width: min(230px, 42vw);
  height: auto;
  object-fit: contain;
}

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

.session-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(24, 167, 107, 0.22);
  border-radius: 999px;
  color: #0c6d48;
  background: rgba(99, 238, 154, 0.14);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.ghost-button {
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  font-weight: 800;
}

.ghost-button:hover {
  border-color: var(--ink);
}

.workspace {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 70px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(99, 238, 154, 0.22), transparent 44%),
    #071013;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-band h1 {
  max-width: 13ch;
  margin-top: 10px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-band p:not(.eyebrow) {
  max-width: 46rem;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.hero-status {
  min-width: 142px;
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-status span {
  color: var(--mint);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-status small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.app-card {
  min-height: 318px;
  display: grid;
  grid-template-rows: 88px 1fr auto;
  gap: 20px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(7, 16, 19, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(7, 16, 19, 0.08);
}

.app-card-media {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, white), #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
}

.app-card-media img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.app-card-media span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  font-weight: 900;
}

.app-card-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.app-card-copy p {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-card-copy h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.app-card-copy span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 14px;
  color: var(--white);
  background: var(--accent);
  font-weight: 900;
}

.open-link strong {
  font-size: 1.2rem;
  line-height: 1;
}

.open-link:hover {
  filter: brightness(0.94);
}

@supports not (color: color-mix(in srgb, white, black)) {
  .app-card-media {
    background: #f7faf7;
    border-color: var(--line);
  }
}

@media (max-width: 1080px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: auto;
  }

  .brand-stage {
    min-height: 360px;
  }

  .hero-band {
    grid-template-columns: 1fr;
  }

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

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .workspace {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 14px 12px;
  }

  .session-pill {
    display: none;
  }

  .hero-band {
    padding: 24px 18px;
  }
}
