.home-auth-email__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.home-auth-email__field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
  min-height: 40px;
}

.home-auth-email__field.is-invalid {
  border-bottom-color: #d53251;
}

.home-auth-email__label {
  flex: 0 0 auto;
  min-width: 120px;
  color: #b3b3b3;
  font-family: var(--font-buttons, "CoFo Gothic", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.home-auth-email__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

#home-header-auth .home-auth-email__input,
#home-header-auth .home-auth-email input[type="text"],
#home-header-auth .home-auth-email input[type="password"],
#home-header-auth .home-auth-email input[type="email"] {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #000;
  font-family: var(--font-main, "CoFo Gothic", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#home-header-auth .home-auth-email__input:focus,
#home-header-auth .home-auth-email input[type="text"]:focus,
#home-header-auth .home-auth-email input[type="password"]:focus,
#home-header-auth .home-auth-email input[type="email"]:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.home-auth-email__eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

.home-auth-email__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  /* With form gap:28px this yields 80px before actions — matches SMS (margin collapse) */
  margin-bottom: 52px;
}

.home-auth-email__remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.home-auth-email__remember-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-auth-email__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #e8e8e8;
  transition: background .2s ease;
}

.home-auth-email__switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cfcfcf;
  transition: transform .2s ease, background .2s ease;
}

.home-auth-email__remember-input:checked + .home-auth-email__switch {
  background: #f7cfe6;
}

.home-auth-email__remember-input:checked + .home-auth-email__switch::after {
  background: #e1429f;
  transform: translateX(20px);
}

.home-auth-email__remember-text,
.home-auth-email__forgot {
  font-family: var(--font-buttons, "CoFo Gothic", Arial, sans-serif);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
}

.home-auth-email__remember-text {
  color: #000;
}

.home-auth-email__forgot {
  color: #b3b3b3;
  white-space: nowrap;
}

.home-auth-email__forgot:hover,
.home-auth-email__forgot:focus {
  color: #e1429f;
}

.home-auth-email__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-bottom: 0;
}

.home-auth-email__actions .home-auth-email__btn {
  flex: 0 0 auto;
}

.home-auth-email__error {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d53251;
  font-family: var(--font-buttons, "CoFo Gothic", Arial, sans-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-auth-email__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border: 0;
  border-radius: 12px;
  color: #000;
  font-family: var(--font-buttons, "CoFo Gothic", Arial, sans-serif);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color .25s ease, color .25s ease;
}

.home-auth-email__btn--primary {
  background: #ffdee2;
}

.home-auth-email__btn--secondary {
  background: #f2f1f0;
}

.home-auth-email__btn:hover,
.home-auth-email__btn:focus {
  background: #e1429f;
  color: #fff;
  text-decoration: none;
  filter: none;
}
