.customer-auth-page { margin: 0; min-width: 320px; color: #172b45; background: #f6f7f9; font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.customer-auth-page *, .customer-auth-page *::before, .customer-auth-page *::after { box-sizing: border-box; }
.customer-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1160px; margin: 40px auto 24px; background: white; border: 1px solid #e0e5eb; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 50px #172b4509; }
.customer-auth-layout--register { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; }
.customer-auth-story { position: relative; align-self: stretch; display: flex; flex-direction: column; padding: 36px; background: #172b45; color: white; }
.customer-auth-back { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; color: #d9e3ee; text-decoration: none; font-size: 13px; padding-block: 6px; }
.customer-auth-back:hover { color: white; text-decoration: underline; }
.customer-auth-story__copy { margin: 56px 0 26px; }
.customer-auth-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.customer-auth-eyebrow span { width: 22px; height: 2px; background: #ff985b; }
.customer-auth-story h2 { margin: 22px 0 16px; font-family: "Manrope", system-ui, sans-serif; font-size: clamp(30px, 3vw, 43px); line-height: 1.17; letter-spacing: -.045em; font-weight: 700; }
.customer-auth-story h2 em { color: #ffac79; font-style: normal; }
.customer-auth-story__copy > p:last-child { max-width: 320px; color: #c1cfdf; line-height: 1.7; font-size: 14px; }
.customer-auth-image { width: 100%; height: auto; max-height: 280px; aspect-ratio: 1.35; object-fit: cover; border-radius: 14px; }
.customer-auth-story__note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 11px; color: #d2deeb; line-height: 1.6; }
.customer-auth-story__note span { color: #ffac79; font-size: 20px; }
.customer-auth-content { min-width: 0; padding: clamp(28px, 4vw, 56px); align-self: center; }
.customer-auth-layout--register .customer-auth-content { padding: 36px 40px; }
.customer-auth-page .customer-auth-tabs { display: flex; padding: 5px; background: #f1f4f7; border-radius: 10px; margin-bottom: 36px; }
.customer-auth-page .customer-auth-tabs a { flex: 1; padding: 11px 8px; text-align: center; color: #5c6d80; text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 7px; }
.customer-auth-page .customer-auth-tabs a[aria-current] { background: white; color: #172b45; box-shadow: 0 2px 6px #172b4510; }
.customer-auth-kicker { margin: 0 0 12px; font-size: 10px; letter-spacing: .1em; color: #66788d; font-weight: 700; }
.customer-auth-content h1 { margin: 0; font-family: "Manrope", system-ui, sans-serif; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.045em; line-height: 1.2; }
.customer-auth-intro { margin: 12px 0 28px; color: #637186; font-size: 14px; line-height: 1.6; }
.customer-login-form { display: grid; gap: 20px; }
.customer-registration-form { display: grid; gap: 24px; }
.customer-fields, .customer-field, .customer-input-wrap { box-sizing: border-box; min-width: 0; }
.customer-fields { margin: 0; padding: 0; border: 0; text-align: left; }
.customer-fields + .customer-fields { margin-top: 8px; }
.customer-fields legend { display: flex; align-items: center; gap: 9px; padding: 0; margin-bottom: 9px; color: #172b45; font-size: 16px; line-height: 1.5; font-weight: 700; }
.customer-fields legend span { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; border-radius: 50%; background: #edf1f6; color: #52667d; font-size: 10px; }
.customer-fields__intro { margin: 0 0 19px; color: #627187; font-size: 12px; line-height: 1.6; }
.customer-fields__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.customer-field--wide { grid-column: 1 / -1; }
.customer-field { display: flex; flex-direction: column; gap: 7px; }
.customer-field > label { margin: 0; color: #34475e; font: 600 12px/1.5 "DM Sans", system-ui, sans-serif; }
.customer-field > label span { color: #6b7788; font-weight: 400; font-size: 11px; }
.customer-input-wrap { display: flex; position: relative; }
.customer-input-wrap input { box-sizing: border-box; margin: 0; width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; border: 1px solid #cdd6e1; border-radius: 8px; background: white; color: #172b45; font: 400 16px/1.4 "DM Sans", system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; }
.customer-input-wrap:has(button) input { padding-right: 64px; }
.customer-input-wrap input::placeholder { color: #8290a1; font-size: 14px; }
.customer-input-wrap input:focus { outline: none; border-color: #416d9e; box-shadow: 0 0 0 3px #416d9e20; }
.customer-input-wrap input[aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.customer-password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 48px; padding: 5px; border: 0; border-radius: 5px; color: #425e7c; background: transparent; cursor: pointer; font: 600 12px/1.4 "DM Sans", system-ui, sans-serif; }
.customer-password-toggle:hover { background: #eff3f7; }
.customer-field-error { color: #b42318; font: 400 12px/1.5 "DM Sans", system-ui, sans-serif; }
.customer-field-error[hidden] { display: none; }
.customer-requirements { margin: 12px 0 0; color: #5f6e80; font-size: 11px; line-height: 1.6; }
.customer-auth-status { margin: 0; font-size: 13px; line-height: 1.6; border-radius: 8px; overflow-wrap: anywhere; }
.customer-auth-status:empty { display: none; }
.customer-auth-status[data-state="error"] { padding: 12px 14px; color: #9a271e; background: #fff1ef; border: 1px solid #f4ccc6; }
.customer-auth-status[data-state="success"] { padding: 12px 14px; color: #14633c; background: #edf8f1; }
.customer-auth-status[data-state="loading"] { color: #52667d; }
.customer-auth-submit { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 50px; padding: 12px; border: 0; border-radius: 9px; background: #172b45; color: #fff; font: 600 14px/1.5 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.customer-auth-submit:hover:not(:disabled) { background: #284c74; }
.customer-auth-submit:disabled { cursor: wait; opacity: .65; }
.customer-auth-submit span { font-size: 19px; font-weight: 400; }
.customer-auth-switch { margin: 24px 0 0; color: #607086; font-size: 13px; text-align: center; line-height: 1.7; }
.customer-auth-switch a { color: #224f80; font-weight: 700; text-decoration: none; }
.customer-auth-switch a:hover { text-decoration: underline; }
.customer-auth-footer { display: flex; justify-content: space-between; max-width: 1160px; margin: 24px auto; padding: 0 4px; font-size: 11px; color: #6b7788; }
.customer-auth-page a:focus-visible, .customer-auth-page button:focus-visible, .customer-password-toggle:focus-visible { outline: 3px solid #ee9a58; outline-offset: 3px; }
.customer-auth-skip { position: fixed; top: -100px; left: 16px; z-index: 1500; padding: 12px; background: white; color: #172b45; }
.customer-auth-skip:focus { top: 12px; }
/* Keep the same registration fields usable inside both existing dialogs. */
.auth-dialog[data-mode="register"] { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.auth-dialog[data-mode="register"] .auth-dialog__shell { grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); }
.auth-dialog[data-mode="register"] .auth-dialog__content { min-width: 0; }
.auth-dialog[data-mode="register"] .auth-dialog__aside { justify-content: flex-start; gap: 72px; }
.auth-dialog #main-register-form { gap: 24px; }
.auth-dialog .auth-status { font-size: 13px; line-height: 1.6; }
.auth-dialog .auth-panel__switch { color: #596b80; }
.customer-auth-modal .customer-auth-dialog:has(#customer_auth_register_panel:not([hidden])) { width: min(760px, calc(100vw - 32px)); }
.customer-auth-modal #customer_register_form { gap: 24px; }
@media (max-width: 1200px) { .customer-auth-layout { margin-inline: 24px; } .customer-auth-footer { margin-inline: 24px; } }
@media (max-width: 850px) {
  .customer-auth-layout, .customer-auth-layout--register { grid-template-columns: 1fr; max-width: 680px; margin: 24px auto; }
  .customer-auth-story { padding: 20px 32px; }
  .customer-auth-story__copy, .customer-auth-image, .customer-auth-story__note { display: none; }
  .customer-auth-content, .customer-auth-layout--register .customer-auth-content { padding: 32px; }
  .auth-dialog[data-mode="register"] .auth-dialog__shell { grid-template-columns: minmax(0, 1fr); }
  .auth-dialog[data-mode="register"] .auth-dialog__aside { display: none; }
}
@media (max-width: 700px) { .customer-auth-layout { margin: 20px 16px; } }
@media (max-width: 480px) {
  .customer-auth-layout { margin: 12px; border-radius: 16px; }
  .customer-auth-content, .customer-auth-layout--register .customer-auth-content { padding: 24px 20px; }
  .customer-auth-story { padding: 13px 20px; }
  .customer-auth-page .customer-auth-tabs { margin-bottom: 28px; }
  .customer-fields__grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .customer-auth-footer { margin: 20px; font-size: 10px; gap: 20px; }
  .auth-dialog[data-mode="register"] { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) { .customer-input-wrap input { transition: none; } }
