/**
 * Auth surfaces: Login (Digits) + Register (GF) — no site header/footer.
 * Two-column desktop layout with decorative right panel (no copy).
 */

body.as-auth-surface {
  margin: 0;
  min-height: 100vh;
  background: #f7f7f5;
  font-family: var(--as-font, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: #111;
  -webkit-font-smoothing: antialiased;
}

body.as-auth-surface .as-site-header,
body.as-auth-surface .as-site-footer,
body.as-auth-surface .as-mkt-header,
body.as-auth-surface .as-mkt-footer {
  display: none !important;
}

.as-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
}

.as-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(20px, 4vw, 56px) 36px;
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 17, 17, 0.06) 1px, transparent 0) 0 0 / 22px 22px,
    #fafafa;
}

.as-auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 440px;
  width: 100%;
}

.as-auth__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.as-auth__brand .as-custom-logo,
.as-auth__brand img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.as-auth__lang {
  position: relative;
  z-index: 40;
  flex-shrink: 0;
}

.as-auth__card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  padding: 32px 28px 24px;
}

.as-auth__card--register {
  max-width: 560px;
}

.as-auth__top:has(+ .as-auth__card--register),
.as-auth__card--register ~ .as-auth__legal {
  max-width: 560px;
}

.as-auth__intro {
  margin-bottom: 22px;
}

.as-auth__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #111;
}

.as-auth__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #5a5a5a;
}

.as-auth__footer-link {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: #5a5a5a;
}

.as-auth__footer-link a {
  color: var(--as-red, #b12227);
  font-weight: 600;
  text-decoration: none;
}

.as-auth__footer-link a:hover {
  text-decoration: underline;
}

.as-auth__legal {
  max-width: 440px;
  width: 100%;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8a8a8a;
}

.as-auth__legal a {
  color: #5a5a5a;
  text-decoration: none;
}

.as-auth__legal a:hover {
  color: #111;
}

/* Decorative right panel (no text) */
.as-auth__aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1a 0%, #111 48%, #3a0f12 100%);
  min-height: 100%;
}

.as-auth__aside-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  right: -18%;
  bottom: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 34, 39, 0.5), transparent 68%);
  pointer-events: none;
}

.as-auth__aside-glow--2 {
  width: 48%;
  height: 48%;
  left: -12%;
  top: -10%;
  right: auto;
  bottom: auto;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

/* Logged-in status */
.as-login-status__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.as-login-status__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.as-login-status__text {
  margin: 0 0 24px;
  font-size: 15px;
  color: #5a5a5a;
  line-height: 1.55;
}

.as-login-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.as-login-status__actions .as-mkt-btn,
.as-auth .as-mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.as-auth .as-mkt-btn--primary {
  background: var(--as-red, #b12227);
  color: #fff !important;
}

.as-auth .as-mkt-btn--secondary {
  background: #fff;
  color: #111 !important;
  border-color: #ececec;
}

/* Digits shell */
.as-auth .digits_embed-form,
.as-auth .digits-form_wrapper,
.as-auth .digits-form_container,
.as-auth .digits_ui,
.as-auth .digits-form_page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.as-auth .digits-form_heading,
.as-auth .digits-form_heading_text {
  display: none !important;
}

.as-auth .digits-form_body_wrapper {
  padding: 0 !important;
}

.as-auth .digits-form_tab-bar,
.as-auth .digits-form_tabs {
  display: flex !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  border-bottom: 0 !important;
  margin: 0 0 20px !important;
}

.as-auth .digits-form_tab-item {
  flex: 1 1 0 !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 11px 8px !important;
  text-align: center !important;
  color: #8a8a8a !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}

.as-auth .digits-form_tab-item.digits-tab_active {
  color: #111 !important;
  border-bottom-color: var(--as-red, #b12227) !important;
}

/* Keep OTP step from collapsing while Digits swaps tab bodies / sends SMS. */
.as-auth .digits-form_tab_body.digits-tab_active {
  display: block !important;
  min-height: 56px;
}

.as-auth .as-login-otp-hint {
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #5c5c5c !important;
  font-weight: 400 !important;
}

.as-auth .digits-form_input_row:not(.digits-form_rememberme) {
  position: relative !important;
  width: 100% !important;
}

/* Style the phone/email field chrome — not the Digits country-code overlay. */
.as-auth .digits-form_input_row:not(.digits-form_rememberme) > .digits-form_input:not(.digits-form_countrycode):not(.countrycodecontainer),
.as-auth .digits-form_input_row:not(.digits-form_rememberme) input.digits-form_input:not(.digits_countrycode):not(.countrycode),
.as-auth .digits-form_input_row:not(.digits-form_rememberme) .mobile_field {
  border-radius: 12px !important;
  border: 1px solid #e5e5e5 !important;
  background: #f7f7f7 !important;
  min-height: 48px !important;
  font-size: 15px !important;
  box-shadow: none !important;
  width: 100% !important;
}

/*
 * Digits lays the country code absolutely over the left of the phone input
 * (padding-left on the tel field). Never force that overlay to width:100% —
 * it intercepts all clicks and the number field becomes unusable.
 */
.as-auth .digits-form_countrycode,
.as-auth .digits_countrycodecontainer,
.as-auth .countrycodecontainer {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  max-width: 7.5rem !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 0 0 10px !important;
  margin: 0 !important;
}

.as-auth .digits-form_countrycode input.countrycode,
.as-auth .digits-form_countrycode input.digits_countrycode,
.as-auth .countrycodecontainer input.countrycode {
  width: auto !important;
  min-width: 2.75rem !important;
  max-width: 4.5rem !important;
  min-height: 48px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
  padding-left: 36px !important;
  padding-right: 4px !important;
}

/* Remember me — strip Digits input-box chrome, keep custom checkbox */
.as-auth .digits-form_rememberme {
  margin: 6px 0 22px !important;
  padding: 0 !important;
}

.as-auth .digits-form_rememberme .digits-form_input,
.as-auth .digits-form_rememberme .digits-field-type_tac {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.as-auth .digits-form_rememberme .dig_opt_mult_con,
.as-auth .digits-form_rememberme .dig_opt_mult {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.as-auth .digits-form_rememberme label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
}

.as-auth .digits-form_rememberme .dig_input_wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 2px 0 2px 28px !important;
  margin: 0 !important;
  min-height: 22px !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1.35 !important;
  cursor: pointer;
}

.as-auth .digits-form_rememberme .dig_input_wrapper::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border: 1.5px solid #c8c8c8 !important;
  border-radius: 5px !important;
  background-color: #fff !important;
  background-image: none !important;
  box-sizing: border-box !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.as-auth .digits-form_rememberme .selected .dig_input_wrapper::before,
.as-auth .digits-form_rememberme label:has(input:checked) .dig_input_wrapper::before {
  background-color: var(--as-red, #b12227) !important;
  border-color: var(--as-red, #b12227) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E") !important;
  background-size: 12px 12px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* Digits draws a second black check via ::after — kill it. */
.as-auth .digits-form_rememberme .dig_input_wrapper::after,
.as-auth .digits-form_rememberme .selected .dig_input_wrapper::after,
.as-auth .digits-field-type_tac .dig_input_wrapper::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.as-auth .digits-form_rememberme .dig_input_wrapper > div {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #5a5a5a !important;
  line-height: 1.4 !important;
}

.as-auth .digits-form_button,
.as-auth .digits-form_button[type="submit"],
.as-auth .digits-form_submit {
  width: 100% !important;
  background: var(--as-red, #b12227) !important;
  border-radius: 999px !important;
  min-height: 48px !important;
  font-weight: 600 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  margin-top: 0 !important;
}

.as-auth .digits-form_button:hover,
.as-auth .digits-form_submit:hover {
  background: var(--as-red-dark, #99191e) !important;
}

/* Digits site footer junk only — keep .digits-form_footer for OTP resend. */
.as-auth .digits_site_footer_box {
  display: none !important;
}

/* Gravity Forms on auth — kill legacy double-card from as-registration.css */
body.as-auth-surface #gform_wrapper_1,
.as-auth #gform_wrapper_1 {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.as-auth #gform_wrapper_1 .gform_heading {
  display: none !important;
}

.as-auth #gform_wrapper_1 .gform_required_legend {
  display: none !important;
}

.as-auth #gform_wrapper_1 .gfield_required,
.as-auth #gform_wrapper_1 .gfield_required_asterisk,
.as-auth #gform_wrapper_1 .gfield_label .gfield_required {
  color: #b12227 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
  font-style: normal !important;
}

.as-auth #gform_wrapper_1 .gfield_label .gfield_required.gfield_required_text,
.as-auth #gform_wrapper_1 legend.gfield_label .gfield_required.gfield_required_text,
.as-auth #gform_wrapper_1 .gfield_required.gfield_required_text {
  font-size: 0 !important;
  color: transparent !important;
  letter-spacing: 0 !important;
  font-style: normal !important;
}

.as-auth #gform_wrapper_1 .gfield_label .gfield_required.gfield_required_text::before,
.as-auth #gform_wrapper_1 legend.gfield_label .gfield_required.gfield_required_text::before,
.as-auth #gform_wrapper_1 .gfield_required.gfield_required_text::before {
  content: "*";
  font-size: 13px;
  font-weight: 700;
  color: #b12227;
  font-style: normal;
}

.as-auth #gform_wrapper_1 input,
.as-auth #gform_wrapper_1 textarea,
.as-auth #gform_wrapper_1 select {
  border-radius: 12px !important;
  border: 1px solid #e5e5e5 !important;
  background: #f7f7f7 !important;
  min-height: 46px;
  padding: 12px 14px !important;
  box-shadow: none !important;
}

.as-auth #gform_wrapper_1 input:focus,
.as-auth #gform_wrapper_1 textarea:focus,
.as-auth #gform_wrapper_1 select:focus {
  border-color: #111 !important;
  outline: none;
}

.as-auth #gform_wrapper_1 .gform_button,
.as-auth #gform_wrapper_1 input[type="submit"] {
  width: 100% !important;
  background: var(--as-red, #b12227) !important;
  border-radius: 999px !important;
  min-height: 48px !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.as-auth #gform_wrapper_1 .toggle-auswahl .gfield_radio {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100% !important;
}

.as-auth #gform_wrapper_1 .toggle-auswahl .gchoice {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.as-auth #gform_wrapper_1 .toggle-auswahl input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
}

.as-auth #gform_wrapper_1 .toggle-auswahl label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px;
  padding: 12px 16px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  background: #f7f7f7 !important;
  text-align: center !important;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px !important;
  box-sizing: border-box !important;
}

.as-auth #gform_wrapper_1 .toggle-auswahl input[type="radio"]:checked + label {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

/* DSGVO / consent checkbox — readable spacing, no cramped GF grid */
.as-auth #gform_wrapper_1 .gfield--type-checkbox .gfield_checkbox,
.as-auth #gform_wrapper_1 .gfield--type-consent .ginput_container_consent {
  display: block !important;
  width: 100% !important;
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox .gchoice,
.as-auth #gform_wrapper_1 .gfield--type-consent .gchoice,
.as-auth #gform_wrapper_1 .ginput_container_consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  grid-template-columns: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox input[type="checkbox"],
.as-auth #gform_wrapper_1 .gfield--type-consent input[type="checkbox"],
.as-auth #gform_wrapper_1 .ginput_container_consent input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1.5px solid #c8c8c8 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  display: inline-block !important;
  cursor: pointer;
  position: relative !important;
  top: 0 !important;
  accent-color: var(--as-red, #b12227);
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox input[type="checkbox"]:checked,
.as-auth #gform_wrapper_1 .gfield--type-consent input[type="checkbox"]:checked,
.as-auth #gform_wrapper_1 .ginput_container_consent input[type="checkbox"]:checked {
  background-color: var(--as-red, #b12227) !important;
  border-color: var(--as-red, #b12227) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E") !important;
  background-size: 12px 12px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox input[type="checkbox"]::before,
.as-auth #gform_wrapper_1 .gfield--type-checkbox input[type="checkbox"]::after,
.as-auth #gform_wrapper_1 .gfield--type-consent input[type="checkbox"]::before,
.as-auth #gform_wrapper_1 .gfield--type-consent input[type="checkbox"]::after,
.as-auth #gform_wrapper_1 .ginput_container_consent input[type="checkbox"]::before,
.as-auth #gform_wrapper_1 .ginput_container_consent input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox label,
.as-auth #gform_wrapper_1 .gfield--type-consent label,
.as-auth #gform_wrapper_1 .ginput_container_consent label {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #5a5a5a !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox label a,
.as-auth #gform_wrapper_1 .gfield--type-consent label a,
.as-auth #gform_wrapper_1 .ginput_container_consent label a {
  color: var(--as-red, #b12227) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.as-auth #gform_wrapper_1 .gfield--type-checkbox label a:hover,
.as-auth #gform_wrapper_1 .gfield--type-consent label a:hover {
  text-decoration: underline !important;
}

/* Name fields side-by-side when GF uses half widths */
.as-auth #gform_wrapper_1 .gform_fields {
  display: grid;
  gap: 14px;
}

.as-auth #gform_wrapper_1 .gfield--width-half {
  grid-column: span 1;
}

@media (min-width: 480px) {
  .as-auth #gform_wrapper_1 .gform_fields {
    grid-template-columns: 1fr 1fr;
  }

  .as-auth #gform_wrapper_1 .gfield:not(.gfield--width-half) {
    grid-column: 1 / -1;
  }
}

/* Language switcher: flag-only circle (no truncated "Germ" / wide pill) */
.as-auth .as-lang-switcher,
.as-auth .as-lang-switcher .gtranslate_wrapper {
  width: 40px !important;
  max-width: 40px !important;
  line-height: 0 !important;
}

.as-auth .as-lang-switcher .gt_switcher,
.as-auth .as-lang-switcher .gt_selected {
  position: relative !important;
  display: block !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.as-auth .as-lang-switcher .gt_selected::after,
.as-auth .as-lang-switcher .gt_switcher::after {
  display: none !important;
  content: none !important;
}

.as-auth .as-lang-switcher .gt_selected a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #ececec !important;
  border-radius: 50% !important;
  background: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.as-auth .as-lang-switcher .gt_selected a img {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block !important;
}

.as-auth .as-lang-switcher .gt_selected a span,
.as-auth .as-lang-switcher .gt_selected .gt_current,
.as-auth .as-lang-switcher .gt_selected .gt_current_lang {
  display: none !important;
}

.as-auth .as-lang-switcher .gt_selected a::after {
  content: none !important;
}

.as-auth .as-lang-switcher .gt_option {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: auto !important;
  min-width: 160px !important;
  z-index: 50 !important;
  background: #fff !important;
  border: 1px solid #ececec !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12) !important;
  padding: 6px 0 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

.as-auth .as-lang-switcher .gt_option a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #111 !important;
  white-space: nowrap !important;
}

.as-auth .as-lang-switcher .gt_option a img {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

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

  .as-auth__aside {
    display: none;
  }

  .as-auth__panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 18px 28px;
  }

  .as-auth__top,
  .as-auth__card,
  .as-auth__legal {
    max-width: 100%;
  }

  .as-auth__card {
    padding: 26px 20px 20px;
    border-radius: 16px;
  }

  .as-auth__card--register {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .as-auth__panel {
    padding: 16px 14px 22px;
    justify-content: flex-start;
  }

  .as-auth__top {
    margin-bottom: 18px;
  }

  .as-auth__card {
    padding: 22px 16px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
  }

  .as-auth__title {
    font-size: 24px;
  }

  .as-auth__lede {
    font-size: 14px;
  }

  .as-auth #gform_wrapper_1 .gform_fields {
    grid-template-columns: 1fr;
  }

  .as-auth #gform_wrapper_1 .gfield--width-half {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   404 error surface (header + footer kept)
   ========================================================================== */

body.as-error-surface {
  background: #f7f7f5;
}

body.as-error-surface #content.as-error-page,
.as-error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100vh - 280px);
  min-height: calc(100dvh - 280px);
  padding: 72px 24px;
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 17, 17, 0.05) 1px, transparent 0) 0 0 / 22px 22px,
    #fafafa;
}

.as-error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
}

.as-error-page__code {
  margin: 0 0 12px;
  font-family: var(--mk-font-mono, "Geist Mono", ui-monospace, monospace);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--as-red, #b12227);
}

.as-error-page__title {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #111;
}

.as-error-page__text {
  margin: 0 0 28px;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  color: #5a5a5a;
}

.as-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.as-error-page__actions .as-mkt-btn {
  min-width: 160px;
}

@media (max-width: 768px) {
  .as-error-page {
    min-height: calc(100vh - 220px);
    min-height: calc(100dvh - 220px);
    padding: 48px 18px;
  }

  .as-error-page__inner {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .as-error-page__title {
    font-size: 28px;
  }

  .as-error-page__text {
    font-size: 15px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .as-error-page {
    padding: 36px 14px;
  }

  .as-error-page__inner {
    padding: 28px 18px;
    border-radius: 14px;
  }

  .as-error-page__title {
    font-size: 24px;
  }

  .as-error-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .as-error-page__actions .as-mkt-btn {
    width: 100%;
    min-width: 0;
  }
}
