:root {
  --ink: #081735;
  --muted: #6f7e94;
  --blue: #2f6df3;
  --blue-2: #5aa4ff;
  --line: #dbe4f2;
  --panel: #ffffff;
  --soft: #f7fbff;
  --danger: #d94a4a;
  --success: #219567;
  --shadow: 0 26px 70px rgba(39, 83, 150, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(81, 156, 255, 0.28), transparent 29%),
    radial-gradient(circle at 85% 90%, rgba(47, 109, 243, 0.24), transparent 32%),
    #f8fbff;
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

a:hover {
  text-decoration: underline;
}

.split-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.55fr) minmax(420px, 0.95fr);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(40px, 7vw, 100px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(220, 237, 255, 0.84), rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.64)),
    #fff;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: #dfe8f6;
}

.platform-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: #235cdf;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(58, 112, 194, 0.12);
}

.platform-pill span {
  width: 18px;
  height: 18px;
  border: 6px solid #dbeaff;
  background: var(--blue-2);
  border-radius: 50%;
}

.hero-panel h1 {
  max-width: 840px;
  margin: 46px 0 34px;
  font-size: clamp(64px, 8vw, 124px);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 950;
}

.hero-panel p {
  margin: 0;
  color: #2c3a52;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  font-weight: 850;
}

.decor {
  position: absolute;
  pointer-events: none;
  border: 2px solid #d8e5ff;
}

.square-one {
  width: 95px;
  height: 95px;
  right: 10%;
  top: 17%;
  border-radius: 24px;
  transform: rotate(18deg);
}

.square-two {
  width: 64px;
  height: 64px;
  left: 8%;
  bottom: 8%;
  border-radius: 18px;
}

.ring-one {
  width: 166px;
  height: 166px;
  right: 18%;
  bottom: 13%;
  border-radius: 50%;
}

.access-panel {
  display: grid;
  place-items: center;
  padding: 42px clamp(28px, 4vw, 70px);
}

.login-card,
.status-card,
.chat-panel,
.side-panel,
.tool-card,
.resource-grid a,
.task-list,
.metrics div {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 228, 242, 0.86);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(100%, 610px);
  border-radius: 26px;
  padding: 54px 54px 48px;
  text-align: center;
}

.tb-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 24px;
  font-size: 25px;
  font-weight: 950;
}

.tb-logo.small {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
  font-size: 14px;
}

.login-card h2,
.status-card h1,
.welcome-block h1,
.page-title h1,
.panel-head h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

.login-card > p,
.status-card p,
.welcome-block p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 24px;
  margin-top: 34px;
  text-align: left;
}

.auth-form.compact {
  margin: 26px 0;
}

.auth-form label {
  display: grid;
  gap: 10px;
  color: #18243a;
  font-size: 20px;
  font-weight: 900;
}

.input-shell {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 75px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.input-icon {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 22px;
}

input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  min-height: 54px;
  padding-right: 18px;
}

input::placeholder {
  color: #a4b2c8;
}

input:focus,
button:focus {
  outline: 3px solid rgba(47, 109, 243, 0.25);
  outline-offset: 3px;
}

.form-message {
  min-height: 22px;
  margin: -8px 0 -10px;
  color: var(--danger);
  font-weight: 850;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.checkline {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 12px;
  color: #53637b !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.checkline input {
  width: 25px;
  height: 25px;
  min-height: auto;
}

button,
.link-btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.primary-btn,
.ghost-btn,
.ms-btn {
  min-height: 74px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 950;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 32px rgba(47, 109, 243, 0.2);
}

.primary-btn:hover,
.link-btn:hover {
  text-decoration: none;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 18px;
  color: var(--blue);
  background: #edf5ff;
  border: 1px solid #cde1ff;
}

.ms-btn {
  gap: 16px;
  color: #18243a;
  background: #fff;
  border: 2px solid var(--line);
}

.ms-grid,
.ms-large {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  grid-template-rows: repeat(2, 13px);
  gap: 3px;
}

.ms-large {
  grid-template-columns: repeat(2, 24px);
  grid-template-rows: repeat(2, 24px);
  margin: 0 auto 24px;
}

.ms-grid i,
.ms-large i {
  display: block;
}

.ms-grid i:nth-child(1),
.ms-large i:nth-child(1) { background: #f25022; }
.ms-grid i:nth-child(2),
.ms-large i:nth-child(2) { background: #7fba00; }
.ms-grid i:nth-child(3),
.ms-large i:nth-child(3) { background: #00a4ef; }
.ms-grid i:nth-child(4),
.ms-large i:nth-child(4) { background: #ffb900; }

.security-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 16px;
}

.security-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 18px;
  border-radius: 20px;
  color: #52637b;
  background: #eaf4ff;
  border: 1px solid #cce3ff;
  font-weight: 900;
}

.secure-note,
.demo-note {
  margin: 12px 0 0 !important;
  font-size: 15px !important;
  font-weight: 850;
}

.demo-note {
  color: #8090a7 !important;
}

.app-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5edf8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.brand:hover {
  text-decoration: none;
}

.app-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.app-header nav a {
  color: #42516a;
}

.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.workspace.narrow {
  width: min(760px, calc(100% - 40px));
}

.welcome-block,
.page-title {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tool-grid,
.resource-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-card,
.resource-grid a,
.metrics div {
  border-radius: 18px;
  min-height: 165px;
  padding: 28px;
}

.tool-card {
  display: grid;
  gap: 12px;
}

.tool-card:hover,
.resource-grid a:hover {
  text-decoration: none;
  border-color: #bdd8ff;
}

.tool-card span,
.resource-grid a {
  color: var(--blue);
  font-size: 27px;
  font-weight: 950;
}

.tool-card strong,
.resource-grid span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.resource-grid a {
  display: grid;
  gap: 14px;
}

.resource-grid span {
  display: block;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.chat-panel,
.side-panel,
.status-card {
  border-radius: 22px;
  padding: 30px;
}

.chat-log {
  display: grid;
  gap: 14px;
  min-height: 340px;
  align-content: start;
  padding: 20px 0;
}

.message {
  max-width: 82%;
  padding: 16px 18px;
  border-radius: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.message.ai {
  background: #eef6ff;
  color: #284265;
}

.message.user {
  justify-self: end;
  background: var(--blue);
  color: #fff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
}

.chat-form input {
  min-height: 58px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0 18px;
}

.chat-form .primary-btn {
  min-height: 58px;
  font-size: 18px;
}

.side-panel h2 {
  margin: 0 0 18px;
}

.prompt-btn {
  width: 100%;
  min-height: 52px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #23456d;
  background: #eef6ff;
  font-weight: 850;
}

.task-list {
  display: grid;
  border-radius: 18px;
  overflow: hidden;
}

.task-list label {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid #e8eef8;
  font-weight: 850;
}

.task-list label:last-child {
  border-bottom: 0;
}

.task-list input {
  width: 22px;
  height: 22px;
  min-height: auto;
}

.task-list span {
  color: var(--muted);
  font-weight: 700;
}

.metrics div {
  display: grid;
  gap: 8px;
}

.metrics strong {
  color: var(--blue);
  font-size: 50px;
}

.metrics span {
  color: var(--muted);
  font-weight: 850;
}

.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-card {
  width: min(560px, 100%);
  text-align: center;
}

.status-card.left {
  text-align: left;
}

.status-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: var(--success);
  background: #e8f8f1;
  font-size: 38px;
  font-weight: 950;
}

.status-card.error .status-icon {
  color: var(--danger);
  background: #ffeaea;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

  .hero-panel {
    min-height: 48vh;
  }

  .access-panel {
    min-height: 52vh;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .hero-panel,
  .access-panel {
    padding: 30px 20px;
  }

  .platform-pill {
    font-size: 15px;
  }

  .hero-panel h1 {
    font-size: 52px;
  }

  .hero-panel p,
  .login-card > p {
    font-size: 18px;
  }

  .login-card {
    padding: 32px 22px;
  }

  .input-shell {
    min-height: 64px;
  }

  .primary-btn,
  .ms-btn {
    min-height: 62px;
    font-size: 18px;
  }

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

  .tool-grid,
  .resource-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .task-list label {
    grid-template-columns: 28px 1fr;
  }

  .task-list span {
    grid-column: 2;
  }
}
