/* Кнопки входа через Yandex ID / VK ID — login.php, register.php.
   Самодостаточные стили (не полагаются на классы app.css), тёмная тема сайта
   (meta theme-color #05080b) — подобрано через скилл ui-ux-pro-max. */

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 14px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f4f7;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.oauth-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.oauth-btn:active {
  transform: scale(0.98);
}

.oauth-btn:focus-visible {
  outline: 2px solid #6C8CFF;
  outline-offset: 2px;
}

.oauth-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.oauth-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.oauth-btn--yandex:hover { border-color: rgba(252, 63, 29, 0.55); }
.oauth-btn--vk:hover { border-color: rgba(0, 119, 255, 0.55); }

.oauth-consent {
  font-size: 12.5px;
  line-height: 1.5;
  color: #9aa3b2;
  margin: 0 0 18px;
}

.oauth-consent a {
  color: #b7c0d1;
  text-decoration: underline;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: #7c8494;
  font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.oauth-error {
  font-size: 13.5px;
  color: #ffb4a8;
  background: rgba(255, 90, 60, 0.12);
  border: 1px solid rgba(255, 90, 60, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .oauth-btn {
    transition: none;
  }
}
