/* Stripchat-style social auth buttons — login + join popups */
.sl-social-auth-divider {
  position: relative;
  margin: 18px 0 14px;
  text-align: center;
}

.sl-social-auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.sl-social-auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: inherit;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

#popupWindow #leftSide .sl-social-auth-divider span {
  background: linear-gradient(145deg, rgba(10, 14, 26, 0.98), rgba(8, 10, 18, 0.98));
}

#loginModal .sl-social-auth-divider span,
#broadcasterModal .sl-social-auth-divider span {
  background: var(--sl-login-modal-bg, rgba(17, 24, 39, 0.98));
}

.sl-social-auth-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sl-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sl-social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.sl-social-btn i {
  font-size: 16px;
  line-height: 1;
}

.sl-social-btn--google i {
  font-size: 0;
}

.sl-social-btn--google i::before {
  content: "G";
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-style: normal;
  color: #4285f4;
  font-size: 16px;
}

.sl-social-btn--x i {
  color: #f8fafc;
}

.sl-social-btn--facebook i {
  color: #1877f2;
}

.sl-social-btn-label {
  display: none;
}

@media (min-width: 520px) {
  .sl-social-auth-row--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sl-auth-secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sl-auth-secondary-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.sl-auth-magic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.sl-auth-magic-link:hover {
  color: #f8fafc;
}

.sl-auth-magic-link i {
  color: #facc15;
}

#popupWindow .join-popup-captcha,
#popupWindow .member-login-captcha,
#loginModal .member-login-captcha {
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}
#broadcasterModal .loginPopupBtn {
  border-radius: 999px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 800 !important;
}

#loginModal form > .loginPopupBtn,
#broadcasterModal form > .loginPopupBtn {
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.38);
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

#loginModal form > .loginPopupBtn:hover,
#broadcasterModal form > .loginPopupBtn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.46);
}

#loginModal .sl-auth-footer-cta,
#popupWindow .sl-auth-footer-cta {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

#loginModal .sl-auth-footer-cta a,
#popupWindow .sl-auth-footer-cta a {
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
}

#loginModal .sl-auth-footer-cta a:hover,
#popupWindow .sl-auth-footer-cta a:hover {
  text-decoration: underline;
}

.sl-username-generate-wrap {
  position: relative;
}

.sl-username-generate-wrap .popup-input,
.sl-username-generate-wrap .loginTextInput {
  padding-right: 46px;
}

.sl-username-generate-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #facc15;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sl-username-generate-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

#loginModal.sl-auth-modal-panel .login-modal-header,
#loginModal.sl-auth-modal-panel form {
  position: relative;
  z-index: 1;
}

#loginModal.sl-auth-modal-panel .login-modal-header {
  margin-bottom: 18px !important;
}

#loginModal.sl-auth-modal-panel .login-form-group {
  margin-bottom: 14px !important;
}

#loginModal.sl-auth-modal-panel .closeLogin {
  z-index: 2;
}
