/**
 * Попап «Вход» (#enter): выбор роли — клиент / сиделка.
 */

.popup__content._enter {
  max-width: 22.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.popup__content._enter .popup__head {
  margin-bottom: 1.25rem;
}

.popup__content._enter .popup__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark, #27314a);
}

.enter-choice__lead {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #6b7280;
  text-align: center;
}

.enter-choice__error {
  margin: 0 0 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

.enter-choice__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.enter-choice__btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.875rem 1rem 0.875rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 1.125rem;
  background: var(--gray-light, #f2f2f2);
  text-decoration: none;
  color: var(--blue-dark, #27314a);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.enter-choice__btn:hover {
  background: #e8e8e8;
  border-color: rgba(209, 65, 107, 0.18);
}

.enter-choice__btn:focus-visible {
  outline: 2px solid var(--brown, #d1416b);
  outline-offset: 2px;
}

.enter-choice__btn:active {
  transform: scale(0.99);
}

.enter-choice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.enter-choice__icon svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.enter-choice__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  text-align: left;
}

.enter-choice__label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.enter-choice__hint {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7280;
}

.enter-choice__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brown, #d1416b);
  flex-shrink: 0;
}

.enter-choice__arrow svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.enter-choice__register {
  margin-top: 1.375rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eceef2;
  text-align: center;
}

.enter-choice__register-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark, #27314a);
}

.enter-choice__register-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.enter-choice__register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: transparent;
  border: 1px solid #dfe3ea;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--blue-dark, #27314a);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.enter-choice__register-link:hover {
  border-color: var(--brown, #d1416b);
  color: var(--brown, #d1416b);
  background: rgba(209, 65, 107, 0.04);
}

.enter-choice__register-link:focus-visible {
  outline: 2px solid var(--brown, #d1416b);
  outline-offset: 2px;
}

@media (min-width: 30em) {
  .enter-choice__register-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .enter-choice__register-link {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 9.5rem;
  }
}
