:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #b8b2a8;
  --line: rgba(246, 241, 232, 0.18);
  --panel: rgba(13, 12, 10, 0.58);
  --panel-strong: rgba(13, 12, 10, 0.78);
  --amber: #ff8a16;
  --amber-soft: rgba(255, 138, 22, 0.2);
  --cyan: #8bd7cb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 138, 22, 0.12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(139, 215, 203, 0.08), transparent 24%),
    linear-gradient(135deg, #070604 0%, #15110d 48%, #090807 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

#particle-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.brand {
  max-width: 660px;
}

.mark {
  width: 88px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 20px);
  grid-auto-rows: 20px;
  gap: 8px;
  margin-bottom: 42px;
}

.mark span {
  border: 1px solid rgba(255, 138, 22, 0.82);
}

.mark span:nth-child(1),
.mark span:nth-child(4),
.mark span:nth-child(5) {
  background: var(--amber);
  box-shadow: 0 0 28px rgba(255, 138, 22, 0.36);
}

.mark span:nth-child(1) {
  grid-column: 1;
  grid-row: 3;
}

.mark span:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.mark span:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.mark span:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

.mark span:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

.mark span:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.login-panel {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.panel-head {
  margin-bottom: 28px;
}

.panel-head p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
}

h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

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

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  font: inherit;
}

input:focus {
  border-color: rgba(255, 138, 22, 0.86);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

input::placeholder {
  color: rgba(246, 241, 232, 0.42);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
}

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
  min-width: 0;
}

.check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--amber);
}

a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--amber);
  color: #120b05;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 138, 22, 0.25);
  background: #ffa23e;
}

.form-message {
  min-height: 18px;
  margin: -4px 0 0;
  color: #ffb36c;
  font-size: 13px;
  line-height: 1.35;
}

.workspace-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.workspace-strip span {
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 880px) {
  body {
    overflow: auto;
  }

  .shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 42px;
  }

  .brand {
    max-width: 560px;
  }

  .mark {
    margin-bottom: 28px;
  }

  .login-panel {
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 22px;
  }

  h1 {
    font-size: 42px;
  }

  .login-panel {
    padding: 22px;
  }

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