:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #11141b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9aa3b2;
  --accent: #ff6200;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a.active,
nav a:hover {
  color: var(--text);
}

.site-main {
  width: min(1040px, calc(100% - 40px));
  margin: 80px auto;
}

.page-panel,
.workspace-panel,
.auth-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 32px;
}

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

h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #170701;
  font-weight: 800;
  text-decoration: none;
}

.secondary,
button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

.auth-message.danger {
  border-color: rgba(255, 98, 0, 0.45);
  background: rgba(255, 98, 0, 0.08);
}

.auth-message.success {
  border-color: rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.08);
}

.auth-separator {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b10;
  color: var(--text);
  padding: 0 12px;
}

.app-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.app-sidebar {
  min-height: 100vh;
  border-right: 1px solid var(--line);
  padding: 24px;
}

.app-sidebar nav {
  display: grid;
  margin-top: 28px;
}

.app-main {
  padding: 40px;
}

@media (max-width: 760px) {
  .site-header,
  .actions,
  .auth-shell,
  .app-body {
    display: block;
  }

  .site-header {
    height: auto;
    padding: 20px;
  }

  nav {
    margin-top: 16px;
  }

  .auth-form {
    margin-top: 28px;
  }

  .app-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
