body:not(.is-authenticated) {
  color: #17233b;
  background: #f5f6f2;
}

body:not(.is-authenticated) .topbar {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border: 0;
  background: transparent;
}

body:not(.is-authenticated) .brand {
  color: #17233b;
}

body:not(.is-authenticated) .brand-mark {
  color: #fff;
  background: #17233b;
}

body:not(.is-authenticated) .brand-copy small,
body:not(.is-authenticated) .topbar-actions {
  display: none;
}

body:not(.is-authenticated) main {
  width: 100%;
  min-height: calc(100vh - 76px);
  margin: 0;
  padding: 0;
}

.auth-landing {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 48px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 420px);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.landing-message h1 {
  margin: 0;
  color: #17233b;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 1.08;
  letter-spacing: -.065em;
  font-weight: 800;
}

.landing-message h1 span {
  display: inline-block;
  margin-top: 10px;
  color: #4268a1;
  letter-spacing: -.045em;
}

.auth-card {
  overflow: hidden;
  border: 1px solid #dce2e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 36, 61, .12);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 7px;
  border-bottom: 1px solid #e6e9e8;
  background: #f5f7f5;
}

.auth-tab {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #73808e;
  background: transparent;
  font-weight: 800;
}

.auth-tab.is-active {
  color: #fff;
  background: #17233b;
  box-shadow: 0 5px 14px rgba(18, 36, 61, .16);
}

.inline-auth-form {
  min-height: 390px;
  padding: 32px;
  align-content: start;
}

#signup-panel .inline-auth-form {
  min-height: 460px;
}

.inline-auth-form label {
  color: #39485d;
}

.inline-auth-form input {
  height: 52px;
  border-color: #d5dcdf;
  background: #fafbf9;
}

.inline-auth-form input:focus-visible,
.auth-tab:focus-visible {
  outline: 3px solid rgba(79, 157, 154, .4);
  outline-offset: 2px;
}

.inline-auth-form .submit-button {
  min-height: 52px;
  margin-top: 16px;
  border-radius: 12px;
  background: #4268a1;
}

.inline-auth-form .submit-button:hover {
  background: #345787;
}

.inline-auth-form .text-button,
.inline-auth-form .login-message {
  color: #4268a1;
}

.inline-auth-form small {
  color: #99a3aa;
}

@media (max-width: 780px) {
  body:not(.is-authenticated) .topbar {
    height: 68px;
    padding: 0 20px;
  }

  body:not(.is-authenticated) main,
  .auth-landing {
    min-height: calc(100vh - 68px);
  }

  .auth-landing {
    width: min(100% - 32px, 520px);
    padding: 44px 0 64px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 40px;
  }

  .landing-message h1 {
    font-size: clamp(40px, 12vw, 62px);
  }
}

@media (max-width: 420px) {
  body:not(.is-authenticated) .brand-copy small {
    display: none;
  }

  .auth-landing {
    width: calc(100% - 24px);
    padding-top: 34px;
    gap: 30px;
  }

  .landing-message h1 {
    font-size: 39px;
  }

  .auth-card {
    border-radius: 20px;
  }

  .inline-auth-form {
    min-height: 370px;
    padding: 24px 20px;
  }

  #signup-panel .inline-auth-form {
    min-height: 440px;
  }
}
