body.auth-page {
  background: radial-gradient(1200px 600px at 20% -10%, #e9f0ff 0%, rgba(233, 240, 255, 0) 60%),
    linear-gradient(180deg, #f6f7fb 0%, #eef1f7 60%, #e9edf5 100%);
  min-height: 100vh;
}

body.auth-page .page-contain {
  min-height: 100vh;
}

.head--auth {
  background: transparent;
  box-shadow: none;
}

.head__contain--auth {
  justify-content: center;
  padding: 20px 0;
}

.head__contain--auth--actions {
  justify-content: space-between;
}

.head__contain--auth .head__logo {
  margin: 0;
}

.head__auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 8px 12px;
}

.head__auth-actions form {
  margin: 0;
}

.head__auth-actions .auth-link {
  font-weight: 600;
  font-size: 14px;
  border-bottom: none;
}

.auth-link--button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.auth-main {
  display: flex;
  justify-content: center;
}

.auth-page--login .page-contain {
  padding-top: 100px;
}

.auth-page--onboarding .page-contain {
  padding-top: 100px;
}

.auth-wrapper {
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  border: 1px solid #eef0f4;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

.auth-card__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111827;
}

.auth-card__subtitle {
  margin: 0 0 20px;
  color: #667085;
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  background: #f2f4f7;
  border-radius: 14px;
  padding: 6px;
  gap: 6px;
  margin-bottom: 22px;
}

.auth-tabs__btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-weight: 600;
  border-radius: 10px;
  color: #667085;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
  border-bottom: none;
}

.auth-tabs__btn:hover {
  color: #111827;
  border-bottom: none;
}

.auth-tabs__btn.active {
  background: #ffffff;
  color: #111827;
  border-color: #e4e7ec;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.08);
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form .input-form,
.auth-form select.input-form {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 14px 14px 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .input-form:focus,
.auth-form select.input-form:focus {
  border-color: #4e7bff;
  box-shadow: 0 0 0 4px rgba(78, 123, 255, 0.12);
  outline: none;
}

.auth-form label {
  color: #667085;
}

.auth-form .btn {
  width: 100%;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
}

.auth-form .bootstrap-select {
  width: 100% !important;
}

.auth-form .bootstrap-select > .dropdown-toggle {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 14px 14px 12px;
  font-size: 15px;
  color: #111827;
  box-shadow: none;
}

.auth-form .bootstrap-select > .dropdown-toggle:focus,
.auth-form .bootstrap-select > .dropdown-toggle:hover {
  border-color: #4e7bff;
  box-shadow: 0 0 0 4px rgba(78, 123, 255, 0.12);
  outline: none !important;
}

.auth-form .bootstrap-select .filter-option {
  color: #111827;
}

.auth-form .bootstrap-select > .dropdown-toggle:hover .filter-option,
.auth-form .bootstrap-select > .dropdown-toggle:focus .filter-option {
  color: #111827;
}

.auth-select-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #667085;
}

.auth-role-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-role-card {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.auth-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-role-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid #e4e7ec;
  background: #ffffff;
  padding: 16px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.auth-role-card__media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
}

.auth-role-card__media img {
  width: auto;
  max-width: 100%;
  max-height: 120px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.auth-role-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.auth-role-card:hover .auth-role-card__body {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

.auth-role-card input:focus + .auth-role-card__body {
  box-shadow: 0 0 0 4px rgba(78, 123, 255, 0.12);
}

.auth-role-card input:checked + .auth-role-card__body {
  border-color: #4e7bff;
  box-shadow: 0 14px 34px rgba(78, 123, 255, 0.18);
}

.auth-role-card input:checked + .auth-role-card__body .auth-role-card__title {
  color: #1d4ed8;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.auth-link {
  color: #1d4ed8;
  border-bottom: none;
  font-size: 13px;
}

.auth-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a2b3;
  font-size: 12px;
  text-transform: uppercase;
  margin: 20px 0 14px;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e4e7ec;
}

.authentication-form__socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.authentication-form__socials__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.authentication-form__socials__icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.authentication-form__socials__icon.--yandex {
  background: #ff2d2d;
  color: #ffffff;
  border-color: transparent;
}

.authentication-form__socials__icon.--vk {
  background: #4c75a3;
  color: #ffffff;
  border-color: transparent;
}

.authentication-form__socials__icon.--google {
  background: #ffffff;
  color: #1a73e8;
  border-color: #e4e7ec;
}

.authentication-form__socials__icon.--apple {
  background: #111827;
  color: #ffffff;
  border-color: transparent;
}

.authentication-form__socials__icon.--telegram {
  background: #2aabee;
  color: #ffffff;
  border-color: transparent;
}

.authentication-form__socials__icon::before {
  content: none;
}

.auth-social-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-social-icon--text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  font-family: "Arial Black", Arial, sans-serif;
}

.auth-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

@media (max-width: 767px) {
  .head__contain--auth--actions {
    gap: 10px;
  }

  .head__auth-actions {
    padding: 6px 10px;
    gap: 10px;
  }

  .head__auth-actions .auth-link {
    font-size: 13px;
  }

  .auth-card {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }

  .auth-card__title {
    font-size: 24px;
  }

  .auth-role-card__media {
    height: 120px;
  }

  .auth-role-card__media img {
    max-height: 100px;
  }
}
