.section-auth {
  width: 100%;
  padding: 0 0.4rem;
  transition: var(--duration-normal);
}
/* .section-auth.is-loading {
  opacity: 0.7;
} */
.section-auth [hidden] {
  display: none !important;
}
.section-auth .auth-panel {
  width: min(100%, 50rem);
  margin-inline: auto;
  padding: 2.4rem;
  border-radius: 1.2rem;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.8rem;
}

/*  */

.section-auth .auth-panel__heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.6rem;
}

.section-auth .auth__test-notices {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.section-auth .auth__test-notice {
  background-color: #ff6060;
  padding: 1.6rem;
  border-radius: 1.2rem;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-dense);
}

.section-auth .auth__title {
  display: block;
  font-weight: var(--font-weight-base);
  color: var(--color-primary);
  font-size: var(--font-size-h5);
  line-height: var(--line-height-snug);
}

/*  */

.section-auth .auth-panel__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.6rem;
}

.section-auth .auth__phone-summary {
  width: 100%;
  border-radius: 1.2rem;
  background-color: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem;
}
.section-auth .auth__phone-summary .auth__phone-summary-value {
  display: block;
  font-size: var(--font-size-md);
  line-height: var(--line-height-none);
}
.section-auth .auth__phone-summary .auth__phone-summary-button {
  height: 3.6rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  border-radius: 1rem;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-none);
  background-color: var(--color-surface);
}

/*  */

.section-auth .auth-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.section-auth .auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.section-auth .auth-form.auth-form--otp {
  margin-top: 1.6rem;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.4rem;
}
.section-auth .auth-form .auth-form__fields {
  width: 100%;
  display: grid;
  gap: 1.6rem;
}
.section-auth .auth-form .auth-form__field {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
}
.section-auth .auth-form .auth-form__field .auth-form__field-label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-none);
  display: block;
}
.section-auth .auth-form .auth-form__field .auth-form__field-input {
  display: block;
  padding: 1.2rem 1.6rem;
  resize: none;
  line-height: var(--line-height-none);
  border-radius: 1.2rem;
  border: 0.1rem solid rgb(var(--color-text-rgb) / 0.12);
  font-family: inherit;
  font-weight: var(--font-weight-base);
  font-size: var(--font-size-sm);
  width: 100%;
}
.section-auth
  .auth-form
  .auth-form__field
  .auth-form__field-input.auth-form__field-input--otp {
  letter-spacing: 0.2rem;
  font-size: var(--font-size-md);
}
.section-auth
  .auth-form
  .auth-form__field
  .auth-form__field-input::placeholder {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  letter-spacing: 0;
  opacity: 0.5;
}
.section-auth .auth-form .auth-form__field .auth-form__field-input:focus {
  border-color: rgb(var(--color-primary-rgb) / 0.35);
}

.section-auth .auth-form .auth__remember-me {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
}
.section-auth .auth-form .auth__remember-me .auth__remember-me-input {
  z-index: -1;
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.section-auth .auth-form .auth__remember-me .auth__remember-me-switch {
  position: relative;
  display: flex;
  flex-shrink: 0;
  appearance: none;
  width: 5.2rem;
  height: 2.8rem;
  background: rgb(var(--color-surface-inverse-rgb) / 0.2);
  border-radius: 20rem;
  cursor: pointer;
  transition: var(--duration-normal);
}
.section-auth
  .auth-form
  .auth__remember-me
  .auth__remember-me-input:checked
  + .auth__remember-me-switch {
  background: rgb(var(--color-primary-rgb) / 0.3);
}
.section-auth
  .auth-form
  .auth__remember-me
  .auth__remember-me-switch
  .auth__remember-me-switch-dot {
  position: absolute;
  width: 2rem;
  height: 2rem;
  top: 0.4rem;
  left: 0.4rem;
  border-radius: 50%;
  background: rgb(var(--color-surface-inverse-rgb) / 0.5);
  transition: var(--duration-normal);
}
.section-auth
  .auth-form
  .auth__remember-me
  .auth__remember-me-input:checked
  + .auth__remember-me__switch
  .auth__remember-me-switch-dot {
  transform: translateX(2.4rem);
  background-color: var(--color-primary);
}
.section-auth .auth-form .auth__remember-me .auth__remember-me-text {
  display: block;
  line-height: var(--line-height-dense);
  font-size: var(--font-size-sm);
}

/*  */

.section-auth .auth-form .auth-form__channels {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section-auth .auth-form .auth-form__channels .auth__channels-title {
  margin-bottom: 0.8rem;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-none);
  display: block;
}
.section-auth .auth-form .auth-form__channels .auth-form__channel-options {
  width: 100%;
  display: flex;
  align-items: stretch;
  border-radius: 1.2rem;
  overflow: hidden;
  position: relative;
  gap: 0.2rem;
}
.section-auth .auth-form .auth-form__channel {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0 1.2rem;
  text-align: center;
  color: rgb(var(--color-primary-rgb) / 0.5);
  transition: var(--duration-normal);
  height: 3.6rem;
  justify-content: center;
  cursor: pointer;
  background-color: rgb(var(--color-primary-rgb) / 0.12);
}
.section-auth .auth-form .auth-form__channel:has(input:checked) {
  background: rgb(var(--color-primary-rgb) / 0.35);
  color: var(--color-primary);
}
.section-auth .auth-form .auth-form__channel input {
  position: absolute;
  z-index: -1;
  width: 0;
  height: 0;
  pointer-events: none;
}
.section-auth .auth-form .auth-form__channel .auth-form__channel-label {
  display: block;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-none);
  text-align: center;
}

/*  */

.section-auth .auth-form__button {
  height: 6rem;
  border-radius: 1.2rem;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 2rem;
  transition: var(--duration-normal);
}
.section-auth .auth-form__button.auth-form__button--otp {
  flex-shrink: 0;
  justify-content: center;
  margin-top: 0;
  height: auto;
}
.section-auth .auth-form__button.auth-form__button--send-code.is-cooldown {
  height: 2.8rem;
  background-color: rgb(var(--color-primary-rgb) / 0.12);
  border-radius: 20rem;
  color: var(--color-text);
}
.section-auth .auth-form__button .button__text {
  display: block;
}
.section-auth .auth-form__button .button__label {
  display: block;
  line-height: var(--line-height-none);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-base);
}
.section-auth
  .auth-form__button.auth-form__button--send-code.is-cooldown
  .button__label {
  font-size: var(--font-size-xs);
}
/* .section-auth .auth-form__button:disabled .button__label {
  font-size: var(--font-size-sm);
} */
.section-auth .auth-form__button .button__icons {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 2.2rem;
  position: relative;
}
.section-auth .auth-form__button .button__icon {
  display: flex;
  flex-shrink: 0;
  transition: var(--duration-normal);
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0);
}
.section-auth.is-default .auth-form__button .button__icon.for-default {
  opacity: 1;
  transform: scale(1);
}
.section-auth.is-loading .auth-form__button .button__icon.for-loading {
  opacity: 1;
  transform: scale(1);
}
.section-auth.is-cooldown .auth-form__button .button__icon.for-cooldown {
  opacity: 1;
  transform: scale(1);
}
.section-auth .auth-form__button .button__icon .icon {
  width: 1.8rem;
  height: 1.8rem;
}
.section-auth .auth-form__button .button__icon .icon.mdc-icon-check {
  width: 2.2rem;
  height: 2.2rem;
}
.section-auth .auth-form__button .button__icon .icon.mdc-icon-chat-line {
  width: 2.2rem;
  height: 2.2rem;
}
.section-auth .auth-form__button .button__icon .icon.mdc-icon-clock {
  width: 2.2rem;
  height: 2.2rem;
}
.section-auth
  .auth-form__button.auth-form__button--send-code.is-cooldown
  .button__icon
  .icon.mdc-icon-clock {
  width: 1.6rem;
  height: 1.6rem;
}
.section-auth .auth-form__button .button__icon .icon.mdc-icon-spinner {
  width: 2.2rem;
  height: 2.2rem;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.section-auth .auth__password-reset,
.section-auth .auth__back-to-login {
  cursor: pointer;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-none);
  display: flex;
  margin-top: 0.8rem;
  background-color: rgb(var(--color-primary-rgb) / 0.12);
  border-radius: 20rem;
  height: 2.8rem;
  padding: 0 1.6rem;
  color: var(--color-primary);
  align-self: center;
  align-items: center;
  text-align: center;
}
.section-auth .auth-form__button:disabled,
.section-auth .auth__password-reset:disabled {
  opacity: 0.5;
  cursor: wait;
}

.section-auth .auth__delivery-action {
  margin-top: 0.8rem;
  width: 100%;
}
.section-auth .auth__delivery-link {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  width: 100%;
  padding: 0 2rem;
  border-radius: 1.2rem;
  height: 4.8rem;
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-none);
}

.section-auth .auth__hint {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-dense);
  opacity: 0.7;
  display: block;
  background-color: var(--color-surface-muted);
  border-radius: 1.2rem;
  padding: 1rem 1.6rem;
}
.section-auth .auth__hint.auth__hint--password-verified {
  margin-bottom: 1.6rem;
}
.section-auth .auth__hint.auth__hint--purpose {
  display: none;
}

.section-auth .auth__captcha {
  margin-top: 0.8rem;
}

.section-auth .auth__status {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-dense);
  display: block;
  padding: 1rem 1.6rem;
  border-radius: 1.2rem;
  transition: var(--duration-normal);
  background-color: var(--color-surface-muted);
  display: none;
}
.section-auth .auth__status.is-error {
  background-color: #ff6060;
  display: block;
}
