/* Customer login only. Dashboard templates and dashboard styles stay untouched. */

body:has(.auth--customer) {
  background: #f7f6fa;
  color: #18141f;
}

body:has(.auth--customer)::before {
  display: none;
}

.auth--customer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  min-height: 100svh;
  padding: 0;
  align-items: stretch;
  background: #f7f6fa;
}

.auth-back {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 4;
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(24, 20, 31, .1);
  border-radius: 999px;
  color: #514a5d;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 8px 25px rgba(44, 28, 82, .06);
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), color 160ms ease, border-color 160ms ease;
}

.auth-back svg {
  width: 16px;
}

.auth-back:hover {
  border-color: rgba(104, 66, 238, .28);
  color: #18141f;
}

.auth-back:active {
  transform: scale(.97);
}

.auth-showcase {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(36px, 6vw, 88px);
  overflow: hidden;
  align-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(150, 121, 255, .35), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(109, 74, 255, .2), transparent 32%),
    linear-gradient(145deg, #17131f, #0d0c13);
}

.auth-showcase::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  content: "";
}

.auth-showcase__copy,
.auth-showcase__visual {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 10px;
}

.auth-brand img {
  width: 28px;
  height: 28px;
}

.auth-brand > span {
  display: grid;
  line-height: 1;
}

.auth-brand-name {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .23em;
}

.auth-brand-sub {
  margin-top: 5px;
  color: currentColor;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .28em;
  opacity: .52;
  text-transform: uppercase;
}

.auth-brand--showcase {
  margin-bottom: clamp(70px, 12vh, 140px);
}

.auth-kicker {
  display: block;
  margin-bottom: 16px;
  color: #b9a8ff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-showcase h1 {
  max-width: 760px;
  margin: 0;
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.auth-showcase__copy > p {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: inline-flex;
  min-height: 39px;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .05);
  font-size: 11.5px;
  font-weight: 650;
}

.auth-benefits svg {
  width: 15px;
  color: #b9a8ff;
}

.auth-showcase__visual {
  width: min(720px, 82%);
  height: clamp(240px, 32vh, 390px);
  margin: clamp(55px, 8vh, 100px) 0 0 auto;
}

.auth-preview {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: #211e28;
  box-shadow: 0 35px 85px rgba(0, 0, 0, .42);
}

.auth-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.auth-preview--main {
  inset: 0 8% 0 0;
  transform: rotate(-2deg);
}

.auth-preview--float {
  right: -2%;
  bottom: -5%;
  width: 40%;
  aspect-ratio: 1.38;
  border: 4px solid rgba(255, 255, 255, .86);
  transform: rotate(4deg);
}

.auth-preview-note {
  position: absolute;
  top: -18px;
  right: 1%;
  display: inline-flex;
  min-height: 42px;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .74);
  background: rgba(23, 19, 31, .84);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .28);
  font-size: 10.5px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.auth-preview-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ce0a6;
  box-shadow: 0 0 0 5px rgba(76, 224, 166, .1);
}

.auth-login {
  display: grid;
  min-height: 100svh;
  padding: clamp(90px, 10vh, 130px) clamp(30px, 6vw, 95px) 55px;
  place-items: center;
  background:
    radial-gradient(circle at 80% 16%, rgba(109, 74, 255, .11), transparent 26%),
    #f7f6fa;
}

.auth-card--premium {
  width: min(100%, 470px);
  max-width: none;
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(24, 20, 31, .1);
  border-radius: 28px;
  color: #18141f;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(44, 28, 82, .12);
  backdrop-filter: blur(18px);
}

.auth-login__brand {
  display: flex;
  margin-bottom: clamp(52px, 8vh, 82px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-card--premium .auth-brand img {
  filter: brightness(0) saturate(100%);
}

.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #756e80;
  font-size: 10.5px;
  font-weight: 700;
}

.auth-secure svg {
  width: 15px;
  color: #6842ee;
}

.auth-login__head {
  margin-bottom: 28px;
}

.auth-card--premium .auth-kicker {
  color: #6842ee;
}

.auth-card--premium .auth-title {
  margin: 0 0 10px;
  color: #18141f;
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
}

.auth-card--premium .auth-sub {
  margin: 0;
  color: #625b6c;
  font-size: 13.5px;
  line-height: 1.6;
}

.auth-card--premium .fld {
  margin-bottom: 18px;
}

.auth-card--premium .fld-label {
  margin-bottom: 7px;
  color: #514a5d;
  font-size: 12px;
  font-weight: 700;
}

.auth-card--premium .input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(24, 20, 31, .13);
  border-radius: 13px;
  color: #18141f;
  background: #fbfafd;
  box-shadow: inset 0 1px 2px rgba(31, 23, 48, .03);
}

.auth-card--premium .input::placeholder {
  color: #aaa4b1;
}

.auth-card--premium .input:focus {
  border-color: #8060f4;
  box-shadow: 0 0 0 4px rgba(104, 66, 238, .11);
}

.auth-card--premium .input--pw {
  padding-right: 48px;
}

.auth-card--premium .pw-toggle {
  right: 8px;
  color: #756e80;
}

.auth-card--premium .fld-check--auth {
  min-height: 34px;
  margin: -2px 0 20px;
  color: #756e80;
  font-size: 11.5px;
}

.auth-card--premium .fld-check--auth input {
  accent-color: #6842ee;
}

.auth-submit {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 180ms ease, filter 180ms ease;
}

.auth-submit svg {
  width: 17px;
}

.auth-submit:hover {
  box-shadow: 0 14px 30px rgba(109, 74, 255, .3);
}

.auth-submit:active {
  transform: scale(.97);
}

.auth-register,
.auth-help {
  margin: 18px 0 0;
  color: #756e80;
  font-size: 11.5px;
  text-align: center;
}

.auth-register a,
.auth-help a {
  color: #6842ee;
  font-weight: 750;
}

.auth-help {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 20, 31, .09);
}

.auth-card--premium .auth-error {
  color: #a3283b;
  border-color: rgba(178, 60, 74, .2);
  background: rgba(178, 60, 74, .07);
}

.auth-card--premium .auth-demo {
  border-color: rgba(24, 20, 31, .1);
}

.auth-card--premium .auth-demo-head,
.auth-card--premium .demo-btn-name {
  color: #18141f;
}

.auth-card--premium .auth-demo-note,
.auth-card--premium .demo-btn-sub {
  color: #756e80;
}

.auth-card--premium .demo-btn {
  border-color: rgba(24, 20, 31, .1);
  background: #f7f6fa;
}

@media (max-width: 1080px) {
  .auth--customer {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    display: none;
  }

  .auth-login {
    padding-inline: 20px;
  }
}

@media (max-width: 540px) {
  .auth-back {
    top: 14px;
    right: 14px;
  }

  .auth-login {
    padding: 74px 14px 28px;
    align-items: start;
  }

  .auth-card--premium {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .auth-login__brand {
    margin-bottom: 52px;
  }
}

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