.customer-register,
.customer-login {
  --button-border-radius: 4px;

  width: min(100%, 420px);
  padding: 8px 24px 0;
  text-align: start;
}

.customer-register .customer__title,
.customer-login .customer__title {
  margin: 36px 0 32px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
  text-align: start;
  text-transform: none;
  letter-spacing: 0;
}

.customer-register .customer__tab,
.customer-login .customer__tab {
  justify-content: flex-start;
  gap: 24px;
  margin-block-end: 24px;
}

.customer-register .field,
.customer-login .field {
  min-height: 0;
  margin-block-end: 28px;
  background: transparent;
}

.customer-register .field::after,
.customer-login .field::after {
  inset: auto 0 0;
  height: auto;
  border: 0;
  border-bottom: 1px solid rgba(204, 204, 204, 0.9);
  border-radius: 0;
  box-shadow: none;
}

.customer-register .field:hover::after,
.customer-login .field:hover::after,
.customer-register .field:focus-within::after,
.customer-login .field:focus-within::after {
  border-width: 0 0 1px;
  border-bottom-color: #222;
  box-shadow: none;
}

.customer-register .field__input,
.customer-login .field__input {
  height: 28px;
  padding: 0 28px 10px 0;
}

.customer-register .field__label,
.customer-login .field__label,
.customer-register .field__input:focus ~ .field__label,
.customer-login .field__input:focus ~ .field__label,
.customer-register .field__input:not(:placeholder-shown) ~ .field__label,
.customer-login .field__input:not(:placeholder-shown) ~ .field__label,
.customer-register .field__input:-webkit-autofill ~ .field__label,
.customer-login .field__input:-webkit-autofill ~ .field__label {
  display: none;
}

.customer-register .field__input::placeholder,
.customer-login .field__input::placeholder {
  color: #b5b5b5;
  opacity: 1;
}

.customer-register .field__suffix,
.customer-login .field__suffix {
  padding-block: 0 8px;
}

body[data-page-type="customers/login"] #MainContent,
body[data-page-type="customers/register"] #MainContent {
  padding: 80px 0;
}

@media (max-width: 959px) {
  body[data-page-type="customers/login"] #MainContent,
  body[data-page-type="customers/register"] #MainContent {
    padding: 40px 0;
  }
}

.customer-register .field.field--error::after,
.customer-login .field.field--error::after,
.customer-register .field.field--error:focus-within::after,
.customer-login .field.field--error:focus-within::after {
  border-bottom-color: #e02424;
}

.customer-register .field:has(+ .field__info--error),
.customer-login .field:has(+ .field__info--error),
.customer-register .field:has(+ .form__error-message),
.customer-login .field:has(+ .form__error-message) {
  margin-block-end: 6px;
}

.customer-register .field__info--error,
.customer-login .field__info--error,
.customer-register .form__error-message,
.customer-login .form__error-message {
  margin: 0 0 16px;
  color: #e02424;
  font-size: 13px;
  line-height: 1.4;
}

.el-auth-forgot {
  margin: -12px 0 20px;
}

.el-auth-forgot a {
  color: #3493fb;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.customer-register .customer__submit,
.customer-login .customer__submit {
  --color-button-background: 205, 45, 89;
  --color-button-text: 255, 255, 255;

  height: 46px;
  margin-block-start: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
}

.el-auth-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: 4px 16px;
}

.el-auth-checks .customer__extra {
  justify-content: flex-start;
  margin-block-start: 0;
}

.el-auth-checks .customer__extra-label,
.el-auth-checks .body4 {
  color: #888;
  font-size: 14px;
  line-height: 1.45;
}

.el-auth-native {
  display: none;
}

.el-auth-country select {
  height: 28px;
  padding-right: 24px;
  cursor: pointer;
  appearance: none;
}

.el-auth-country .icon-arrow {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 2px;
  width: 12px;
  pointer-events: none;
}

.el-auth-switch__lead {
  margin: 0 0 8px;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.el-auth-benefits {
  margin: 0 0 24px;
  padding-inline-start: 18px;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

.el-auth-switch {
  margin-block-start: 72px;
}

.el-auth-switch__title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
  text-align: start;
  text-transform: none;
}

.el-auth-switch__button {
  --color-button-secondary-background: 255, 255, 255;
  --color-button-secondary-text: 205, 45, 89;
  --color-button-secondary-border: 205, 45, 89;
  --color-button-background: 255, 255, 255;
  --color-button-text: 205, 45, 89;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
}

.customer-register .customer__submit:disabled {
  --color-button-background: 229, 229, 229;
  --color-button-text: 168, 168, 168;

  opacity: 1;
  cursor: not-allowed;
}

.el-auth-phone-row {
  gap: 12px;
  align-items: flex-end;
}

.el-auth-dial {
  position: relative;
  flex: 0 0 96px;
}

.el-auth-dial select {
  width: 100%;
  padding: 0 16px 10px 0;
  font-size: 14px;
  color: #222;
  background: transparent;
  border: 0;
  appearance: none;
}

.el-auth-dial .icon-arrow {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 12px;
  width: 10px;
  pointer-events: none;
}

.el-auth-birthday {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-block-end: 28px;
}

.el-auth-birthday select {
  width: 100%;
  padding: 0 0 10px;
  font-size: 14px;
  color: #222;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(204, 204, 204, 0.9);
  appearance: none;
}

.el-auth-done[hidden],
[data-register-step][hidden] {
  display: none;
}

.el-auth-done__button {
  margin-block-start: 8px;
  text-decoration: none;
}

.el-register-back {
  margin-block-end: 12px;
}
