:root {
  color-scheme: dark;
}

body.tg-kanban-login {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(47, 129, 247, .13), transparent 34%),
    linear-gradient(315deg, rgba(63, 185, 80, .08), transparent 30%),
    #0d1117 !important;
}

body.tg-kanban-login #root {
  opacity: .04;
  pointer-events: none;
  filter: blur(8px);
}

.tg-kanban-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 7vw, 110px);
  align-items: center;
  justify-content: center;
  padding: 36px clamp(24px, 10vw, 160px);
  color: #f3f6fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.tg-kanban-brand {
  width: min(100%, 430px);
}

.tg-kanban-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 1px solid rgba(47, 129, 247, .55);
  border-radius: 8px;
  background: rgba(21, 27, 35, .86);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

.tg-kanban-brand h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 800;
}

.tg-kanban-brand p {
  margin: 0;
  max-width: 380px;
  color: #9aa7b5;
  font-size: 16px;
  line-height: 1.55;
}

.tg-kanban-badges {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.tg-kanban-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #2b3440;
  border-radius: 6px;
  background: rgba(21, 27, 35, .68);
  color: #9aa7b5;
  font-size: 12px;
  font-weight: 700;
}

.tg-kanban-card {
  width: min(100%, 440px);
  padding: 28px;
  background: #151b23;
  border: 1px solid #2b3440;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .34);
}

.tg-kanban-card h2 {
  margin: 0 0 8px;
  color: #f3f6fa;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.tg-kanban-sub {
  margin: 0 0 18px;
  color: #9aa7b5;
  font-size: 14px;
  line-height: 1.45;
}

.tg-kanban-notice {
  display: none;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 6px;
  color: #ffd4d4;
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .3);
  font-size: 14px;
  line-height: 1.4;
}

.tg-kanban-notice.show {
  display: block;
}

.tg-kanban-card label {
  display: block;
  margin: 14px 0 6px;
  color: #9aa7b5;
  font-size: 14px;
  font-weight: 600;
}

.tg-kanban-card input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #f3f6fa;
  background: #0d1117;
  border: 1px solid #2b3440;
  border-radius: 6px;
  font: inherit;
  outline: none;
  caret-color: #f3f6fa;
}

.tg-kanban-card input:focus {
  border-color: #2f81f7;
  box-shadow: 0 0 0 3px rgba(47, 129, 247, .22);
}

.tg-kanban-password {
  position: relative;
}

.tg-kanban-password input {
  padding-right: 46px;
}

.tg-kanban-eye {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: #9aa7b5;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.tg-kanban-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 18px;
  color: #fff;
  background: #2f81f7;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tg-kanban-card button[type="submit"]:hover {
  background: #1f6feb;
}

.tg-kanban-card button[type="submit"]:disabled {
  cursor: progress;
  opacity: .72;
}

.tg-kanban-footer {
  margin: 14px 0 0;
  color: #9aa7b5;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .tg-kanban-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 16px;
    overflow-y: auto;
  }

  .tg-kanban-brand,
  .tg-kanban-card {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .tg-kanban-brand h1 {
    font-size: 36px;
  }

  .tg-kanban-badges {
    display: none;
  }
}
