/* Epic 14 / Story 1401 — Social login buttons on /user/login.
   Rendered above the standard email/password form by
   pirt_core_form_user_login_form_alter(). */

.pirt-social-login {
  margin: 0 0 20px;
}

.pirt-social-login__heading {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6470;
}

.pirt-social-login__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 520px) {
  .pirt-social-login__buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.pirt-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.15s ease, background 0.15s ease;
}

.pirt-social-btn:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

/* Google — light surface + coloured G mark prefix. */
.pirt-social-btn--google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #d0d4d9;
}
.pirt-social-btn--google::before {
  content: "G";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 33%, #fbbc04 66%, #ea4335 100%);
  color: #ffffff;
}

/* Facebook — brand blue. */
.pirt-social-btn--facebook {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}
.pirt-social-btn--facebook::before {
  content: "f";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 4px;
  background: #ffffff;
  color: #1877f2;
}

/* Divider between social block and email form. */
.pirt-social-login__divider {
  position: relative;
  margin: 16px 0 8px;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7480;
}
.pirt-social-login__divider::before,
.pirt-social-login__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 70px);
  height: 1px;
  background: #e3e7eb;
}
.pirt-social-login__divider::before { left: 0; }
.pirt-social-login__divider::after { right: 0; }
.pirt-social-login__divider span {
  background: var(--auth-card-bg, #fafbfc);
  padding: 0 8px;
}
