@font-face {
  font-family: Involve;
  src: url("/m/static/fonts/Involve-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Involve, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #06142f;
  color: #f7fbff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.crm-public-auth {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(1, 9, 27, .08) 0%, rgba(1, 9, 27, .02) 48%, rgba(1, 9, 27, .02) 100%),
    #06142f url("/m/static/brand/salespro-crm-auth-background-v2.png?v=1") center / cover no-repeat fixed;
}

.crm-auth-shell {
  width: min(100%, 1672px);
  min-height: calc(100svh - 54px);
  margin: 0 auto;
  padding: clamp(34px, 6.2vh, 76px) clamp(28px, 4vw, 68px) 34px;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(390px, 500px) minmax(330px, 1.05fr);
  gap: clamp(34px, 4.4vw, 78px);
  align-items: center;
}

.crm-auth-promise {
  align-self: center;
  max-width: 490px;
  padding-top: 54px;
  text-shadow: 0 2px 24px rgba(0, 10, 35, .48);
}

.crm-auth-brand {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 8px 13px;
  border: 1px solid rgba(139, 201, 255, .32);
  border-radius: 999px;
  background: rgba(6, 28, 67, .55);
  color: #a8d7ff;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: .04em;
}

.crm-auth-promise h1 {
  margin: 0;
  font-size: clamp(38px, 3.25vw, 55px);
  line-height: 1.03;
  font-weight: 490;
  letter-spacing: -.035em;
}

.crm-auth-promise p {
  max-width: 440px;
  margin: 22px 0 0;
  color: #e0edff;
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.34;
}

.crm-auth-card {
  grid-column: 2;
  width: 100%;
  max-height: calc(100svh - 92px);
  overflow: auto;
  padding: clamp(28px, 3.2vw, 42px);
  border: 1px solid rgba(151, 202, 255, .46);
  border-radius: 19px;
  background: linear-gradient(155deg, rgba(18, 48, 91, .86), rgba(7, 29, 68, .82));
  box-shadow: 0 28px 70px rgba(0, 5, 24, .36), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 195, 255, .45) transparent;
}

.crm-auth-kicker {
  margin: 0 0 10px;
  color: #8fcbff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.crm-auth-card h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.3vw, 37px);
  line-height: 1.12;
  font-weight: 590;
  letter-spacing: -.025em;
}

.crm-auth-lead {
  margin: -6px 0 24px;
  color: #c9dcf5;
  font-size: 16px;
  line-height: 1.45;
}

.crm-auth-card form {
  display: grid;
  gap: 14px;
}

.crm-auth-field {
  display: grid;
  gap: 7px;
  color: #dbeaff;
  font-size: 14px;
  font-weight: 650;
}

.crm-auth-field > input,
.crm-auth-password {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(154, 199, 251, .48);
  border-radius: 11px;
  background: rgba(34, 72, 123, .62);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.crm-auth-field > input,
.crm-auth-password input {
  padding: 0 20px;
  font-size: 17px;
  outline: none;
}

.crm-auth-field > input::placeholder,
.crm-auth-password input::placeholder { color: #b7cae3; }

.crm-auth-field > input:focus,
.crm-auth-password:focus-within {
  border-color: #6ec3ff;
  box-shadow: 0 0 0 4px rgba(52, 155, 255, .2);
}

.crm-auth-password {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
}

.crm-auth-password input {
  min-width: 0;
  height: 56px;
  border: 0;
  background: transparent;
  color: #fff;
}

.crm-auth-password button {
  min-height: 44px;
  margin-right: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(111, 180, 255, .13);
  color: #cce7ff;
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
}

.crm-auth-forgot {
  justify-self: end;
  margin-top: -4px;
  color: #83c8ff;
  font-size: 14px;
  text-decoration: none;
}

.crm-auth-submit {
  min-height: 60px;
  margin-top: 5px;
  border: 1px solid #4ea5ff;
  border-radius: 11px;
  background: linear-gradient(180deg, #1682ff, #0759e7);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 77, 226, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 18px;
  font-weight: 720;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}

.crm-auth-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.crm-auth-submit:active { transform: translateY(0); }
.crm-auth-submit:disabled { cursor: wait; opacity: .7; transform: none; }

.crm-auth-submit--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.crm-auth-switch {
  margin: 23px 0 0;
  color: #d2e0f3;
  font-size: 15px;
  text-align: center;
}

.crm-auth-switch a,
.crm-auth-check a { color: #58b8ff; text-decoration: none; }
.crm-auth-switch a:hover,
.crm-auth-check a:hover,
.crm-auth-forgot:hover { text-decoration: underline; }

.crm-auth-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #d6e3f5;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.crm-auth-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #1e8fff;
}

.crm-auth-check--optional { color: #aebfd6; }

.crm-auth-message,
.crm-auth-token-error {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(104, 203, 161, .44);
  border-radius: 11px;
  background: rgba(28, 114, 79, .25);
  color: #d9fff0;
  font-size: 14px;
  line-height: 1.45;
}

.crm-auth-message.is-error,
.crm-auth-token-error {
  border-color: rgba(255, 140, 140, .44);
  background: rgba(135, 44, 58, .25);
  color: #ffe3e7;
}

.crm-auth-token-error { margin: 0 0 18px; }
.crm-auth-token-error strong { display: block; font-size: 17px; }
.crm-auth-token-error p { margin: 7px 0 0; }

.crm-auth-honeypot {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.crm-auth-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px 18px;
  color: #8da8cb;
  font-size: 14px;
}

.crm-auth-footer a { color: inherit; text-decoration: none; }
.crm-auth-footer a:hover { color: #d7e9ff; text-decoration: underline; }

@media (max-width: 1060px) {
  .crm-public-auth {
    background-position: 65% center;
  }
  .crm-auth-shell {
    grid-template-columns: minmax(260px, .8fr) minmax(370px, 470px);
    padding-right: clamp(28px, 5vw, 64px);
  }
  .crm-auth-card { grid-column: 2; }
}

@media (max-width: 760px) {
  .crm-public-auth {
    background-attachment: scroll;
    background-position: 72% center;
  }
  .crm-public-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(1, 9, 27, .3), rgba(1, 9, 27, .78) 35%, rgba(1, 9, 27, .92));
  }
  .crm-auth-shell {
    position: relative;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 16px 18px;
  }
  .crm-auth-promise {
    max-width: 390px;
    padding-top: 88px;
  }
  .crm-auth-brand { margin-bottom: 14px; }
  .crm-auth-promise h1 { font-size: clamp(31px, 9vw, 39px); }
  .crm-auth-promise p { margin-top: 13px; font-size: 17px; }
  .crm-auth-card {
    grid-column: 1;
    max-height: none;
    padding: 26px 20px;
    border-radius: 17px;
  }
  .crm-auth-card h2 { font-size: 29px; }
  .crm-auth-field > input,
  .crm-auth-password { min-height: 56px; }
  .crm-auth-submit { min-height: 57px; }
  .crm-auth-footer { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .crm-auth-submit { transition: none; }
}
