/* Telegram Login Widget helpers (shared by landing + chat)
   NOTE: Telegram widget renders inside an iframe, so styling is limited.
*/

.telegram-login-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.telegram-login-title {
  margin: 0;
  font-weight: 700;
  color: var(--deep-plum, #3D2E3D);
}

.telegram-login-hint {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary, #5A4A5A);
}

.telegram-login-widget {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Fix: Telegram widget iframe sometimes has extra baseline gap */
.telegram-login-widget iframe {
  display: block;
  border: 0;
}

/* VK login button */
.vk-login-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-vk-login {
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: #0077FF;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-vk-login:hover {
  filter: brightness(0.95);
}

.btn-vk-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* VKID OneTap */
.vkid-login-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vkid-login-widget {
  width: 100%;
  display: flex;
  justify-content: center;
}

.vkid-login-error {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(229, 57, 53, 0.25);
  background: rgba(229, 57, 53, 0.06);
  color: #E53935;
  font-size: 0.9rem;
  line-height: 1.35;
}

.vkid-login-error.show {
  display: block;
}

.or-decoration {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(0, 0, 0, 0.45);
}

.or-decoration::before,
.or-decoration::after {
  content: "";
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  flex: 1;
}

.or-decoration span {
  font-size: 0.85rem;
  font-weight: 600;
}

.telegram-login-error {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(229, 57, 53, 0.25);
  background: rgba(229, 57, 53, 0.06);
  color: #E53935;
  font-size: 0.9rem;
  line-height: 1.35;
}

.telegram-login-error.show {
  display: block;
}
