/*
 * Engine Cường Lâm Social Login
 * Visual layer only: consume the shared --ecl-* design tokens from the theme.
 * Provider brand colors are intentionally kept local to their icons.
 */

.ecl-auth .ecl-social {
  margin: 0 0 14px;
}

.ecl-auth .ecl-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 9px 14px;
  border: 1px solid var(--ecl-border, #28313d);
  border-radius: 10px;
  background: var(--ecl-input-bg, #0d1117);
  color: var(--ecl-text, #dfe5eb) !important;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.ecl-auth .ecl-social__btn:hover {
  border-color: var(--ecl-primary, #2f81f7);
  background: var(--ecl-primary-tint, rgba(47,129,247,.10));
  color: var(--ecl-text-strong, #e8edf2) !important;
}

.ecl-auth .ecl-social__btn:focus-visible {
  outline: 0;
  border-color: var(--ecl-primary, #2f81f7);
  box-shadow: 0 0 0 3px var(--ecl-primary-ring, rgba(47,129,247,.22));
}

.ecl-auth .ecl-social__btn:active {
  transform: translateY(1px);
}

.ecl-auth .ecl-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.ecl-auth .ecl-social__btn--facebook .ecl-social__icon {
  background: #1877f2;
  color: #fff;
  font-size: 18px;
}

.ecl-auth .ecl-social__btn--zalo .ecl-social__icon {
  background: #0068ff;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.ecl-auth .ecl-social__or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--ecl-muted, #8e99a6);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: .02em;
}

.ecl-auth .ecl-social__or::before,
.ecl-auth .ecl-social__or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ecl-divider, rgba(255,255,255,.08));
}

.ecl-social-connections {
  color: var(--ecl-text, #dfe5eb);
  font: inherit;
}

.ecl-social-connections__feedback {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--ecl-border, #28313d);
  border-radius: 10px;
  background: var(--ecl-surface, #10161e);
  color: var(--ecl-text, #dfe5eb);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.ecl-social-connections__feedback[hidden] {
  display: none !important;
}

.ecl-social-connections__feedback.is-success {
  border-color: rgba(63,185,80,.45);
  background: rgba(63,185,80,.08);
  color: #7ee787;
}

.ecl-social-connections__feedback.is-error {
  border-color: rgba(248,81,73,.45);
  background: rgba(248,81,73,.08);
  color: #ffb3ad;
}

.ecl-social-connections__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ecl-border, #28313d);
  border-radius: 10px;
  background: var(--ecl-surface, #10161e);
}

.ecl-social-connections__status {
  color: #3fb950;
  font-weight: 700;
}

.ecl-social-connections__link {
  color: var(--ecl-primary, #2f81f7);
  font-weight: 700;
  text-decoration: none;
}

.ecl-social-connections__link:hover {
  color: var(--ecl-primary-hover, #1f6feb);
}

@media (prefers-reduced-motion: reduce) {
  .ecl-auth .ecl-social__btn {
    transition: none;
  }
}


.ecl-auth .ecl-social__retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid var(--ecl-primary, #2f81f7);
  border-radius: 8px;
  color: var(--ecl-text-strong, #e8edf2) !important;
  background: var(--ecl-primary-tint, rgba(47,129,247,.10));
  font-weight: 700;
  text-decoration: none !important;
}
.ecl-auth .ecl-social__retry:hover {
  background: var(--ecl-primary, #2f81f7);
  color: #fff !important;
}
