:root {
  --ink: #10182b;
  --muted: #64748b;
  --line: #dce4ef;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --plum: #315eea;
  --plum-2: #273db7;
  --violet: #3b67ed;
  --coral: #f05b68;
  --green: #16a75b;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(28, 48, 83, .13);
}

.start-call-link {
  display: grid;
  color: inherit;
  text-decoration: none;
  place-items: center;
}

.auth-view {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(520px, .96fr);
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #f7f9fc;
}

.auth-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #315eea 0%, #4b50ef 52%, #7639ed 100%);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.auth-hero::before,
.auth-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  content: "";
}

.auth-hero::before {
  top: -22vw;
  left: -18vw;
  width: 48vw;
  height: 48vw;
}

.auth-hero::after {
  right: -13vw;
  bottom: -20vw;
  width: 42vw;
  height: 42vw;
}

.auth-brand {
  position: absolute;
  top: 48px;
  left: 58px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
}

.auth-brand .logo-mark {
  width: 48px;
  height: 48px;
  background: rgba(113, 58, 237, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  font-size: 13px;
}

.auth-hero-copy {
  position: relative;
  z-index: 1;
  width: min(660px, 70%);
  margin: 19vh auto 0;
}

.auth-hero-eyebrow {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .2em;
}

.auth-hero-copy h1 {
  max-width: 650px;
  margin: 26px 0 20px;
  font-size: clamp(45px, 4.1vw, 72px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.auth-hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.55;
}

.auth-hero-visual {
  display: grid;
  gap: 22px;
  width: min(560px, 92%);
  margin-top: 58px;
  padding: 30px 34px;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.auth-visual-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.auth-visual-row i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.auth-visual-row b {
  display: block;
  height: 12px;
  background: rgba(255, 255, 255, .4);
  border-radius: 8px;
}

.auth-visual-row:nth-child(1) b {
  width: 78%;
}

.auth-visual-row:nth-child(2) b {
  width: 55%;
}

.auth-visual-row:nth-child(3) b {
  width: 68%;
}

.auth-visual-row.coral i {
  background: #ff7080;
}

.auth-visual-row.blue i {
  background: #8bbafc;
}

.auth-visual-row.gold i {
  background: #ffe283;
}

.auth-form-panel {
  display: grid;
  min-height: 100vh;
  padding: 44px 9%;
  place-items: center;
}

.auth-card {
  width: min(560px, 100%);
  padding: clamp(38px, 4vw, 64px);
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(35, 56, 91, .13);
}

.auth-card .eyebrow {
  color: #315eea;
  font-size: 11px;
  letter-spacing: .18em;
}

.auth-card h1 {
  margin: 18px 0 8px;
  color: #10182b;
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1.1;
}

.auth-card > p {
  margin: 0 0 32px;
  color: #64748b;
  font-size: 16px;
}

.demo-access {
  margin: 18px 0 0;
  padding: 14px;
  background: #f0f5ff;
  border: 1px solid #cddcff;
  border-radius: 12px;
}

.demo-access.expired {
  background: #fff5f5;
  border-color: #fecaca;
}

.demo-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-access-head strong {
  color: #163b9f;
  font-size: 12px;
}

.demo-access-head span {
  padding: 3px 7px;
  color: #315eea;
  background: #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-access-intro {
  margin: 7px 0 10px !important;
}

.demo-user-list {
  display: grid;
  gap: 7px;
}

.demo-user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  color: #10182b;
  text-align: left;
  background: #fff;
  border: 1px solid #d6e2ff;
  border-radius: 8px;
}

.demo-user-button:hover {
  border-color: #315eea;
  box-shadow: 0 4px 12px rgba(49, 94, 234, .1);
  transform: translateY(-1px);
}

.demo-user-button > span {
  display: grid;
  min-width: 0;
}

.demo-user-button b {
  font-size: 11px;
}

.demo-user-button small {
  color: #71809a;
  font-size: 9px;
}

.demo-user-button code {
  overflow: hidden;
  margin-left: auto;
  color: #315eea;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-user-button i {
  color: #315eea;
  font-style: normal;
  font-weight: 800;
}

.demo-access > small,
.demo-access > p {
  display: block;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 9px;
}

.auth-card label:not(.check) {
  margin: 20px 0;
  color: #10182b;
  font-size: 13px;
}

.auth-card input[type=email],
.auth-card input[type=password] {
  margin-top: 9px;
  padding: 15px 16px;
  color: #10182b;
  background: #f8fafc;
  border-color: #d6e0eb;
  border-radius: 10px;
  font-weight: 650;
}

.auth-card input:focus {
  border-color: #315eea;
  box-shadow: 0 0 0 4px rgba(49, 94, 234, .11);
}

.auth-card .check {
  align-items: center;
  margin: 4px 0 26px;
  color: #64748b;
  font-size: 13px;
}

.auth-card .check input {
  width: 18px;
  height: 18px;
  accent-color: #315eea;
}

.auth-card .btn.primary {
  padding: 16px 18px;
  background: #315eea;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(49, 94, 234, .22);
  font-size: 14px;
}

.auth-card .btn.primary:hover {
  background: #244fd7;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .topbar {
  background: linear-gradient(100deg, #315eea, #5948ed 72%, #7639ed);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .13);
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .workspace-logo,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .logo-mark {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .15);
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .sidebar {
  color: #53627a;
  background: #fff;
  border-right: 1px solid #e4eaf2;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .nav-item,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .channel,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .dm-button {
  color: #53627a;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .nav-item.active,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .nav-item:hover,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .channel.active,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .channel:hover {
  color: #244fcf;
  background: #eef4ff;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .section-heading {
  color: #91a0b7;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .section-heading button {
  color: #7e8da5;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .sidebar-footer {
  color: #10182b;
  background: #f7f9fc;
  border-color: #e4eaf2;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .sidebar-footer small {
  color: #64748b;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .secondary-view {
  background: #f6f8fc;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .btn.primary,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .send-btn,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .thread-composer button,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .mobile-nav .mobile-compose {
  background: #315eea;
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .stat-card,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .task-card,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .panel-card,
html:not([data-theme="dark"]):not([data-theme="contrast"]) .insight-card {
  border-color: #dfe6ef;
  box-shadow: 0 3px 10px rgba(24, 43, 76, .04);
}

html:not([data-theme="dark"]):not([data-theme="contrast"]) .insight-eyebrow {
  color: #315eea;
}

@media (max-width: 980px) {
  .auth-view {
    grid-template-columns: minmax(0, .85fr) minmax(450px, 1.15fr);
  }

  .auth-hero {
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  }

  .auth-brand {
    top: 34px;
    left: 34px;
  }

  .auth-hero-copy {
    width: 72%;
    margin-top: 22vh;
  }

  .auth-hero-copy h1 {
    font-size: 42px;
  }

  .auth-hero-visual {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .topbar > [data-action="start-call"],
  .topbar > [data-action="lock-screen"],
  .topbar > [data-action="notifications"],
  .topbar > #profileButton {
    display: none;
  }

  .auth-view {
    display: block;
    min-height: 100vh;
    padding: 92px 18px 30px;
    background: linear-gradient(155deg, #315eea 0, #6840ed 190px, #f7f9fc 191px);
  }

  .auth-hero {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
    clip-path: none;
  }

  .auth-hero::before,
  .auth-hero::after,
  .auth-hero-copy {
    display: none;
  }

  .auth-brand {
    top: 22px;
    left: 22px;
    font-size: 20px;
  }

  .auth-brand .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 11px;
  }

  .auth-form-panel {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .auth-card h1 {
    font-size: 30px;
  }

  .auth-card > p {
    font-size: 14px;
  }
}
