/* ==========================================================================
   COSPTY Social Login — button row + "confirm e-mail" card
   Everything is scoped under .cospty-sl / .cospty-sl-complete so the theme
   is never touched. Desktop and mobile share the same rules with a few
   breakpoints for touch comfort.
   ========================================================================== */

.cospty-sl-source { display: none !important; }

.cospty-sl {
  --cospty-radius: 12px;
  --cospty-h: 50px;
  margin: 20px 0 6px;
  font-family: inherit;
}

/* --- separator -------------------------------------------------------- */
.cospty-sl__sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: #7a828c;
  font-size: 12.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
}
.cospty-sl__sep::before,
.cospty-sl__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dfe3e8, transparent);
}
.cospty-sl__sep span { white-space: nowrap; }

/* --- button grid ------------------------------------------------------ */
.cospty-sl__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.cospty-sl__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--cospty-h);
  padding: 0 16px;
  border-radius: var(--cospty-radius);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.cospty-sl__btn--hidden { display: none !important; }

.cospty-sl__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.cospty-sl__ico svg { display: block; }

.cospty-sl__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- brand colours ---------------------------------------------------- */
.cospty-sl__btn--google {
  background: #ffffff;
  color: #1f1f1f !important;
  border-color: #dadce0;
  box-shadow: 0 1px 0 #e6e9ee, 0 2px 4px rgba(15, 23, 42, .06);
}
.cospty-sl__btn--facebook {
  background: #1877F2;
  color: #fff !important;
  box-shadow: 0 3px 0 #0f5cc0, 0 4px 10px rgba(24, 119, 242, .28);
}
.cospty-sl__btn--apple {
  background: #000000;
  color: #fff !important;
  box-shadow: 0 3px 0 #2b2b2b, 0 4px 10px rgba(0, 0, 0, .25);
}
.cospty-sl__btn--tiktok {
  background: #010101;
  color: #fff !important;
  box-shadow: 0 3px 0 #232323, 0 4px 10px rgba(254, 44, 85, .22);
}
.cospty-sl__btn--huawei {
  background: #CF0A2C;
  color: #fff !important;
  box-shadow: 0 3px 0 #96061f, 0 4px 10px rgba(207, 10, 44, .26);
}

.cospty-sl__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  text-decoration: none !important;
}
.cospty-sl__btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.cospty-sl__btn:focus-visible {
  outline: 3px solid rgba(124, 58, 237, .45);
  outline-offset: 2px;
}

/* --- alternate styles ------------------------------------------------- */
.cospty-sl[data-style="mono"] .cospty-sl__btn {
  background: #fff;
  color: #252a31 !important;
  border-color: #d8dde3;
  box-shadow: 0 1px 0 #e6e9ee;
}
.cospty-sl[data-style="mono"] .cospty-sl__btn .cospty-sl__ico svg path,
.cospty-sl[data-style="mono"] .cospty-sl__btn .cospty-sl__ico svg ellipse { fill: #252a31 !important; }

.cospty-sl[data-style="icon"] .cospty-sl__row {
  grid-template-columns: repeat(auto-fit, minmax(64px, 72px));
  justify-content: center;
}
.cospty-sl[data-style="icon"] .cospty-sl__btn {
  height: 52px;
  padding: 0;
}
.cospty-sl[data-style="icon"] .cospty-sl__txt { display: none; }

/* --- alerts ----------------------------------------------------------- */
.cospty-sl__alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 13px;
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}
.cospty-sl__alert svg { flex: 0 0 16px; margin-top: 2px; }
.cospty-sl__alert--error { background: #fdecec; color: #a3231f; border: 1px solid #f6cfcf; }
.cospty-sl__alert--info  { background: #eef4ff; color: #1d4ed8; border: 1px solid #d3e2ff; }

.cospty-sl__legal {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8a9099;
  text-align: center;
}

/* ==========================================================================
   "Confirm your e-mail" page
   ========================================================================== */
.cospty-sl-complete {
  display: flex;
  justify-content: center;
  padding: 28px 14px 48px;
}

.cospty-sl-complete__card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(15, 23, 42, .09);
  padding: 30px 28px 26px;
}

.cospty-sl-complete__brand { text-align: center; margin-bottom: 14px; }
.cospty-sl-complete__logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .16em;
  background: linear-gradient(92deg, #7C3AED 0%, #E11D48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7C3AED;
}

.cospty-sl-complete__title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  text-align: center;
  color: #1b1f24;
}
.cospty-sl-complete__lead {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
  color: #6b7280;
}

.cospty-sl-complete__provider {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 18px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f4f5f7;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}
.cospty-sl-complete__provider { display: flex; width: fit-content; }
.cospty-sl-complete__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.cospty-sl-complete__errors {
  background: #fdecec;
  border: 1px solid #f6cfcf;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 16px;
  color: #a3231f;
  font-size: 13px;
}
.cospty-sl-complete__errors p { margin: 0 0 4px; }
.cospty-sl-complete__errors p:last-child { margin-bottom: 0; }

.cospty-sl-field { margin-bottom: 14px; }
.cospty-sl-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
}
.cospty-sl-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d8dde3;
  border-radius: 11px;
  font-size: 15px;
  color: #1b1f24;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cospty-sl-field input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .16);
}
.cospty-sl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cospty-sl-complete__submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #7C3AED 0%, #E11D48 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #5b21b6, 0 8px 20px rgba(124, 58, 237, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cospty-sl-complete__submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.cospty-sl-complete__submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #5b21b6; }

.cospty-sl-complete__legal {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9099a3;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 575px) {
  .cospty-sl { margin: 16px 0 4px; }
  .cospty-sl__row { grid-template-columns: 1fr; gap: 9px; }
  .cospty-sl__btn { --cospty-h: 52px; }
  .cospty-sl__legal { font-size: 11px; }
  .cospty-sl-complete { padding: 16px 12px 36px; }
  .cospty-sl-complete__card { padding: 24px 18px 22px; border-radius: 16px; }
  .cospty-sl-field-row { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  .cospty-sl__row { gap: 11px; }
}

/* Dark storefront themes */
@media (prefers-color-scheme: dark) {
  .cospty-sl[data-style="mono"] .cospty-sl__btn {
    background: #14161a;
    color: #f2f4f7 !important;
    border-color: #2b3038;
  }
  .cospty-sl[data-style="mono"] .cospty-sl__btn .cospty-sl__ico svg path { fill: #f2f4f7 !important; }
}
