.tp-telegram-auth {
  margin: 12px 0 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.tp-telegram-auth__actions {
  display: flex;
}

.tp-telegram-auth__button {
  position: relative;
  width: 100%;
}

.tp-telegram-auth__button--loading .tp-telegram-auth__button-text,
.tp-telegram-auth__button--success .tp-telegram-auth__button-text {
  opacity: 0;
}

.tp-telegram-auth__button--loading::after,
.tp-telegram-auth__button--success::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  box-sizing: border-box;
}

.tp-telegram-auth__button--loading::after {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: tp-telegram-auth-spin 0.8s linear infinite;
}

.tp-telegram-auth__button--success::after {
  background: #fff;
}

.tp-telegram-auth__button--success::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 9px;
  margin: -6px 0 0 -3px;
  border: solid #128080;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  z-index: 1;
}

.tp-telegram-auth__status {
  display: none;
}

@keyframes tp-telegram-auth-spin {
  to {
    transform: rotate(360deg);
  }
}
