/* CheckoutSaver auth v2 — login + signup shared visual system
   Staging deploy first; keep forms usable at 375–768. */

.cs-auth-page {
  --cs-auth-navy: #081a38;
  --cs-auth-ink: #00050c;
  --cs-auth-blue: #1677ff;
  --cs-auth-blue-bright: #3da9ff;
  --cs-auth-blue-deep: #0d5ad6;
  --cs-auth-orange: #ff8a00;
  --cs-auth-text: #f5f8ff;
  --cs-auth-muted: rgba(245, 248, 255, 0.78);
  --cs-auth-panel: rgba(12, 16, 28, 0.78);
  --cs-auth-field: rgba(255, 255, 255, 0.07);
  --cs-auth-border: rgba(255, 255, 255, 0.14);
  --cs-auth-radius: 20px;
  --cs-auth-font: Montserrat, Poppins, "Segoe UI", sans-serif;
  --cs-auth-display: Outfit, Montserrat, "Segoe UI", sans-serif;

  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: block;
  overflow-x: hidden;
  color: var(--cs-auth-text);
  font-family: var(--cs-auth-font);
  /* Base gradient plane (login background / auth-bg) — fox sits above this */
  background-color: var(--cs-auth-ink);
  background-image: url("../images/auth/auth-bg.jpg?v=2");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.cs-auth-page::before {
  content: none;
  display: none;
}

.cs-auth-page.sign-form-back {
  background-image: url("../images/auth/auth-bg.jpg?v=2") !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  display: block !important;
  align-items: unset !important;
}

/*
 * Fox plane — native 1448×1086 artboard (see auth-fox-plane.png / img width/height).
 * Do not percentage-scale or max-width shrink the fox.
 * Stack: auth-bg gradient → fox → UI.
 */
.cs-auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.cs-auth-bg__img {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1448px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: unset;
}

/* Soft readability veil over the fox (content still above this plane) */
.cs-auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 5, 12, 0.18) 0%, rgba(0, 5, 12, 0.04) 45%, rgba(0, 5, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 5, 12, 0.12) 0%, transparent 30%, rgba(0, 5, 12, 0.4) 100%);
}

.cs-auth-page .sign-form-container,
.cs-auth-page .signIn-form-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: block;
}

.cs-auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 16px 20px;
  align-items: start;
}

/* Brand plane ----------------------------------------------------------- */
.cs-auth-brand {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 12px 4px 8px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cs-auth-brand__copy {
  position: relative;
  z-index: 2;
  margin: 0 0 4px;
}

/* Auth desktop: clear the fox wordmark / sit beside the mascot (login + signup) */
@media (min-width: 992px) {
  .cs-auth-page--signup .cs-auth-brand__copy,
  .cs-auth-page--login .cs-auth-brand__copy {
    margin-top: 210px;
    margin-left: -80px;
  }

  .cs-auth-page--signup .cs-auth-panel,
  .cs-auth-page--login .cs-auth-panel {
    margin-top: 156px;
    position: relative;
    left: 50px;
  }
}

.cs-auth-brand__title {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-family: var(--cs-auth-display);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.045em;
  text-transform: none !important;
  max-width: 12ch;
}

.cs-auth-brand__title em,
.cs-auth-brand__title .cs-auth-accent {
  font-style: normal;
  color: var(--cs-auth-blue-bright);
}

.cs-auth-brand__sub {
  position: relative;
  z-index: 2;
  margin: 0 0 6px;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--cs-auth-muted);
}

/* Legacy inline fox slot — kept hidden; fox is the page bg plane */
.cs-auth-brand__visual {
  display: none !important;
}

/* Feature tiles — sit low so they clear the fox face */
.cs-auth-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  max-width: 520px;
  margin: auto 0 0;
  padding: 28px 0 0;
  border: 0;
  background: transparent;
}

.cs-auth-features__item {
  margin: 0;
  padding: 0;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(77, 179, 255, 0.14);
}

.cs-auth-features__item img,
.cs-auth-features img {
  display: block;
  width: 100%;
  height: auto;
}

/* Form panel — opaque dark glass (no backdrop-filter / no fox bleed) --- */
.cs-auth-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-top: 56px;
  padding: 30px 28px 26px !important;
  border-radius: var(--cs-auth-radius) !important;
  background: #0a0e1a !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(77, 179, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  display: block !important;
  align-self: start;
  overflow: hidden;
  z-index: 3;
  isolation: isolate;
}

.cs-auth-page--signup .cs-auth-panel.cs-signup-panel,
.cs-auth-page--login .cs-auth-panel.cs-login-panel {
  background-color: #0a0e1a !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.cs-auth-page .sign-form-wrap.cs-auth-shell,
.cs-auth-page .sign-form-wrap.cs-login-wrap,
.cs-auth-page .sign-form-wrap.cs-signup-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 16px 20px;
  align-items: start !important;
  background: transparent !important;
}

.cs-auth-page .sign-form-left {
  display: none !important;
}

.cs-auth-page .sign-form-content-wrap.cs-login-panel,
.cs-auth-page .sign-form-content-wrap.cs-signup-panel,
.cs-auth-page .cs-auth-panel.cs-login-panel,
.cs-auth-page .cs-auth-panel.cs-signup-panel {
  width: 100% !important;
}

.cs-auth-page .sign-form-content-wrap.cs-login-panel,
.cs-auth-page .cs-auth-panel.cs-login-panel,
.cs-auth-page .sign-form-content-wrap.cs-signup-panel,
.cs-auth-page .cs-auth-panel.cs-signup-panel {
  background: #0a0e1a !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.cs-auth-page .sign-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 22px;
  text-decoration: none !important;
  border-radius: 50%;
}

.cs-auth-page .sign-form-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.cs-auth-page .cs-login-brand,
.cs-auth-page .cs-signup-brand {
  display: none !important;
}

.cs-auth-panel .heading {
  margin: 0 0 16px;
  text-align: left;
  padding-right: 28px;
}

.cs-auth-panel .heading h3,
.cs-auth-panel .heading .sign-form-welcome {
  font-size: 13px !important;
  letter-spacing: 0.02em;
  opacity: 1;
  margin: 0 0 6px !important;
  color: var(--cs-auth-blue-bright) !important;
  text-transform: none !important;
  text-align: left;
  font-weight: 600 !important;
}

.cs-auth-panel .heading h1,
.cs-auth-panel .heading .cs-signup-title {
  font-size: 28px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: none !important;
  text-align: left;
  /* Keep existing Create an account / Sign in face (not Outfit display) */
  font-family: var(--cs-auth-font) !important;
}

.cs-auth-panel .heading-msg .errormsg,
.cs-auth-panel .heading-msg .succmsg,
.cs-auth-panel #login_error_msg .alert,
.cs-auth-panel #login_error_msg .errormsg,
.cs-auth-panel .errormsg,
.cs-auth-panel .succmsg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  margin: 10px 0 2px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.cs-auth-panel .heading-msg .errormsg,
.cs-auth-panel #login_error_msg .alert,
.cs-auth-panel #login_error_msg .errormsg,
.cs-auth-panel .errormsg {
  background: rgba(48, 18, 10, 0.55) !important;
  border: 1px solid rgba(255, 176, 120, 0.42) !important;
  color: #ffe6cc !important;
}

.cs-auth-panel .heading-msg .succmsg,
.cs-auth-panel .succmsg {
  background: rgba(10, 36, 28, 0.5) !important;
  border: 1px solid rgba(110, 231, 183, 0.35) !important;
  color: #d1fae5 !important;
}

.cs-auth-panel.is-login-error .sign-form input.form-input {
  border-color: rgba(255, 176, 120, 0.55) !important;
}

.cs-auth-panel .sign-form {
  margin-bottom: 0 !important;
  max-width: none;
  width: 100%;
}

.cs-auth-panel .sign-form .form-group {
  position: relative;
  margin-bottom: 12px !important;
}

.cs-auth-panel .cs-signup-row {
  display: flex;
  gap: 10px;
}

.cs-auth-panel .cs-signup-row .form-group {
  flex: 1;
  min-width: 0;
}

.cs-auth-panel .sign-form input.form-input {
  width: 100%;
  height: 46px;
  padding: 11px 14px !important;
  border: 1px solid var(--cs-auth-border) !important;
  border-radius: 12px !important;
  background: var(--cs-auth-field) !important;
  color: #fff !important;
  font-size: 14px !important;
  box-sizing: border-box;
  border-bottom: 1px solid var(--cs-auth-border) !important;
}

.cs-auth-panel .sign-form input.form-input:focus {
  border-color: rgba(77, 179, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.22);
  outline: none;
}

.cs-auth-panel .sign-form input.form-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.cs-auth-panel .sign-form label.input-label {
  position: static !important;
  display: block;
  margin: 0 0 6px;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  pointer-events: auto;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.cs-auth-panel .sign-form .bar,
.cs-auth-panel .sign-form .highlight {
  display: none !important;
}

.cs-auth-panel .cs-pw-wrap {
  position: relative;
}

.cs-auth-panel .cs-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  min-height: 44px;
  z-index: 2;
}

.cs-auth-panel .cs-pw-wrap input.form-input {
  padding-right: 68px !important;
}

.cs-auth-panel .cs-pw-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 400;
}

.cs-auth-panel .cs-pw-hint.is-warn {
  color: #ffc9a8;
  font-weight: 600;
}

.cs-auth-panel .cs-referral-toggle,
.cs-auth-panel .cs-referral-expand p,
.cs-auth-panel .cs-referral-expand a {
  color: var(--cs-auth-blue-bright) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.cs-auth-panel .cs-referral-toggle a,
.cs-auth-panel .cs-referral-expand a {
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: 0 !important;
}

.cs-auth-panel .cs-referral-field {
  display: none;
  margin-top: 8px;
}

.cs-auth-panel .cs-referral-field.is-open {
  display: block;
}

.cs-auth-panel .btn-holder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cs-auth-panel .btn-holder.cs-signup-actions {
  display: block !important;
  margin: 14px 0 0 !important;
}

.cs-auth-panel .cs-signup-actions .custom-checkbox,
.cs-auth-panel .cs-signup-actions .cs-newsletter-row {
  position: relative;
  margin: 0 0 14px !important;
  padding: 0 !important;
  min-height: 44px;
  width: auto !important;
  max-width: 100%;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0;
}

.cs-auth-panel .cs-signup-actions .custom-checkbox input[type="checkbox"],
.cs-auth-panel .cs-signup-actions .cs-newsletter-row input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer;
  z-index: 2;
  float: none !important;
}

.cs-auth-panel .cs-signup-actions .custom-checkbox label,
.cs-auth-panel .cs-signup-actions .cs-newsletter-row label {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  width: auto !important;
  max-width: none !important;
  min-height: 44px;
  padding: 8px 0 8px 36px !important;
  margin: 0 !important;
  float: none !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  cursor: pointer;
}

.cs-auth-panel .cs-signup-actions .custom-checkbox label::before,
.cs-auth-panel .cs-signup-actions .cs-newsletter-row label::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-sizing: border-box;
  display: block !important;
  float: none !important;
}

.cs-auth-panel .cs-signup-actions .custom-checkbox input[type="checkbox"]:checked + label::before,
.cs-auth-panel .cs-signup-actions .cs-newsletter-row input[type="checkbox"]:checked + label::before {
  background: var(--cs-auth-blue) !important;
  border-color: var(--cs-auth-blue) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.cs-auth-panel .cs-signup-actions .custom-checkbox input[type="checkbox"]:checked + label::after,
.cs-auth-panel .cs-signup-actions .cs-newsletter-row input[type="checkbox"]:checked + label::after {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  width: 6px !important;
  height: 11px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: translateY(-60%) rotate(45deg) !important;
  background: none !important;
}

.cs-auth-panel .frgt-pass-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: underline;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cs-auth-panel .btn.btn-ylw,
.cs-auth-panel .cs-signup-submit {
  background: linear-gradient(180deg, #3b8dff, var(--cs-auth-blue)) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 12px 22px !important;
  min-height: 46px;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.35);
}

.cs-auth-panel .btn.btn-ylw:hover,
.cs-auth-panel .cs-signup-submit:hover {
  background: linear-gradient(180deg, #5aa0ff, var(--cs-auth-blue-deep)) !important;
}

.cs-auth-panel .cs-signup-submit {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.cs-auth-panel .or-divider-sec {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px;
  margin: 22px 0 14px !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  position: relative !important;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.cs-auth-panel .or-divider-sec:before,
.cs-auth-panel .or-divider-sec:after {
  content: "" !important;
  flex: 1 1 auto;
  height: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  display: block !important;
  position: static !important;
  width: auto !important;
  background: none !important;
}

.cs-auth-panel .or-divider-sec span {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: inline-block !important;
  flex: 0 0 auto;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.cs-auth-panel .or-divider-sec .circle,
.cs-auth-panel .or-divider-sec .line,
.cs-auth-panel .or-divider-sec .parant {
  display: none !important;
}

.cs-auth-panel .other-signin-sec {
  clear: both;
  padding-top: 0 !important;
  margin-top: 0 !important;
  text-align: center;
}

.cs-auth-panel .other-signin-sec h4 {
  color: rgba(255, 255, 255, 0.88) !important;
  text-align: center;
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 0 12px !important;
  line-height: 1.3;
  position: static !important;
}

.cs-auth-panel .other-signin-sec .cs-sso-buttons {
  max-width: 100% !important;
}

.cs-auth-panel .other-signin-sec .cs-sso-btn {
  min-height: 44px;
  border-radius: 10px;
}

.cs-auth-panel .other-signin-info-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.cs-auth-panel .other-signin-info-text a {
  color: var(--cs-auth-blue-bright) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
}

.cs-auth-panel .terms-note,
.cs-auth-panel .other-signin-sec .terms-note {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin-top: 10px;
}

.cs-auth-panel .other-signin-sec .terms-note a {
  color: var(--cs-auth-blue-bright) !important;
  text-decoration: underline;
  font-weight: 600;
}

.cs-auth-panel .sign-form label.error,
.cs-auth-panel .sign-form .error,
.cs-auth-panel .cs-field-error {
  position: static !important;
  right: auto !important;
  top: auto !important;
  background: transparent !important;
  color: #ffd8a8 !important;
  padding: 4px 0 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

.cs-auth-panel .sign-form label.error[style*="display: none"],
.cs-auth-panel .cs-field-error[style*="display: none"],
.cs-auth-panel .cs-field-error.is-cleared,
.cs-auth-panel .cs-field-error[data-cs-email-format-error][hidden],
.cs-auth-panel .cs-field-error[data-cs-email-format-error]:empty,
.cs-auth-panel .sign-form div.error:empty,
.cs-auth-panel .sign-form span.error:empty,
.cs-auth-panel .sign-form label.error:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cs-auth-panel .cs-pw-reqs [data-req][hidden],
.cs-auth-panel .cs-pw-reqs.is-valid [data-req].is-unmet {
  display: none !important;
}

.cs-auth-panel .cs-signup-submit:disabled,
.cs-auth-panel .cs-signup-submit:disabled * {
  cursor: wait;
}

.cs-auth-panel [data-cs-apple-login] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
  .cs-auth-shell,
  .cs-auth-page .sign-form-wrap.cs-auth-shell,
  .cs-auth-page .sign-form-wrap.cs-login-wrap,
  .cs-auth-page .sign-form-wrap.cs-signup-wrap {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 560px !important;
  }

  .cs-auth-brand {
    text-align: center;
    align-items: center;
    min-height: 0;
    padding: 4px 0 0;
  }

  .cs-auth-brand__copy {
    width: 100%;
  }

  .cs-auth-brand__title {
    margin-left: auto;
    margin-right: auto;
    max-width: 12ch;
    font-size: clamp(28px, 7vw, 36px);
  }

  .cs-auth-brand__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cs-auth-bg__img {
    width: 1448px;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .cs-auth-bg::after {
    background:
      linear-gradient(180deg,
        rgba(0, 5, 12, 0.3) 0%,
        rgba(0, 5, 12, 0.68) 48%,
        rgba(0, 5, 12, 0.92) 100%),
      linear-gradient(90deg,
        rgba(0, 5, 12, 0.28) 0%,
        rgba(0, 5, 12, 0.12) 55%,
        rgba(0, 5, 12, 0.5) 100%);
  }

  .cs-auth-panel {
    margin: 36px auto 0;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .cs-auth-page {
    padding: 14px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
  }

  .cs-auth-brand__title {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .cs-auth-brand__sub {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .cs-auth-bg__img {
    width: 1448px;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .cs-auth-bg::after {
    background:
      linear-gradient(180deg,
        rgba(0, 5, 12, 0.35) 0%,
        rgba(0, 5, 12, 0.75) 42%,
        rgba(0, 5, 12, 0.95) 100%),
      linear-gradient(90deg,
        rgba(0, 5, 12, 0.32) 0%,
        rgba(0, 5, 12, 0.18) 100%);
  }

  .cs-auth-panel {
    margin-top: 28px;
    padding: 22px 16px 20px !important;
  }

  .cs-auth-panel .heading h1,
  .cs-auth-panel .heading .cs-signup-title {
    font-size: 24px !important;
  }

  .cs-auth-panel .cs-signup-row {
    flex-direction: column;
    gap: 0;
  }

  .cs-auth-panel .btn-holder {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-auth-panel .btn.btn-ylw {
    width: 100%;
  }

  .cs-auth-panel .frgt-pass-link {
    justify-content: center;
    order: 2;
  }

  .cs-auth-panel .cs-signup-actions .custom-checkbox label,
  .cs-auth-panel .cs-signup-actions .cs-newsletter-row label {
    white-space: normal;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-auth-page,
  .cs-auth-panel {
    transition: none !important;
  }
}
