.auth-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px 72px;
  background:
    radial-gradient(circle at top, rgba(231, 229, 223, 0.85), transparent 38%),
    linear-gradient(180deg, #f9f9f9 0%, #f2f0eb 100%);
}

.auth-screen__inner {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-entrance {
  animation: authEntrance 0.75s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes authEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.auth-screen__back {
  align-self: flex-start;
  margin-bottom: 10px;
  color: #393e41;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.auth-screen__warning {
  width: 100%;
  background: #e7e5df;
  color: #ff2b1f;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 24px 18px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.auth-screen .profile-popup {
  width: 100%;
  background: #e7e5df;
  overflow: hidden;
  border-radius: 2px;
}

.auth-screen .profile-popup-form {
  width: 100%;
}

.auth-screen .profile-popup .form-body {
  background: #e7e5df;
  padding: 15px;
}

.auth-screen .profile-popup .form-header {
  margin: 18px 0 28px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: #393e41;
}

.auth-screen .profile-popup .form-group {
  margin: 0 10px 14px;
}

.auth-screen .profile-popup .form-control {
  height: 48px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  border: none;
  outline: none;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
}

.auth-screen .profile-popup .action-button {
  width: 100%;
  height: 48px;
  background: #393e41;
  border-radius: 4px;
  margin-top: 18px;
  border: none;
  font-size: 0;
  cursor: pointer;
}

.auth-screen .profile-popup .action-button:after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/img/action-btn-icon.svg") center center no-repeat;
  background-size: contain;
}

.auth-screen .profile-popup .action-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 0;
  padding: 14px 15px 8px;
  background: #e7e5df;
}

.auth-switch a {
  color: #9ea1a4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.auth-switch a.is-active {
  color: #393e41;
}

.auth-control.has-error {
  border: 1px solid #ff584b;
}

.auth-restore-link {
  display: block;
  margin: 2px auto 0;
  background: transparent;
  border: none;
  color: #393e41;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.auth-terms-text {
  color: #393e41;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  padding: 12px 4px 0;
  margin: 0;
}

.auth-social-list {
  width: 100%;
  padding-top: 10px;
}

.auth-social-list .soc-link {
  display: block;
  width: 228px;
  font-size: 0;
  margin: 10px auto 20px;
  text-decoration: none;
  background: none !important;
  box-shadow: none !important;
  height: auto !important;
  overflow: visible !important;
}

.auth-social-list .soc-link.facebook,
.auth-social-list .soc-link.google {
  background: none !important;
  box-shadow: none !important;
  height: auto !important;
}

.auth-social-list .soc-link img {
  display: block;
  width: 228px;
  height: auto;
}

.auth-social-list .soc-link.google img {
  width: 280px;
  margin-left: -25px;
}

.auth-social-list .soc-link.google {
  margin-top: -8px;
}

@media (max-width: 640px) {
  .auth-screen {
    padding-top: 28px;
  }
}

.brand-loader {
  width: 100%;
  max-width: 240px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  text-align: center;
}

.brand-loader--compact {
  min-height: auto;
  max-width: none;
  padding: 0;
  gap: 10px;
}

.brand-loader__logo {
  width: 180px;
  height: auto;
  display: block;
}

.brand-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(57, 62, 65, 0.16);
  border-top-color: #393e41;
  animation: authCompleteSpin 0.8s linear infinite;
  display: inline-block;
}

.brand-spinner--button {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  margin-right: 8px;
  vertical-align: -3px;
}

.brand-spinner--inline {
  width: 16px;
  height: 16px;
  border-width: 2px;
  margin-right: 8px;
  vertical-align: -3px;
}

.brand-spinner--navbar {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

@keyframes authCompleteSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .brand-loader {
    min-height: 180px;
    padding: 16px;
  }

  .brand-loader__logo {
    width: 156px;
  }
}
