/* HC Social Login – light-only, scoped under .hc-auth */

/* Prevent flash of unstyled content */
.hc-auth { opacity: 0; }
.hc-auth.hc-ready, .hc-auth { animation: hcFadeIn .15s ease forwards; }
@keyframes hcFadeIn { from { opacity: 0; } to { opacity: 1; } }

.hc-auth {
  --hc-bg: #ffffff;
  --hc-fg: #0f172a;
  --hc-muted: #f8fafc;
  --hc-muted-fg: #64748b;
  --hc-border: #e2e8f0;
  --hc-accent: #2da892;
  --hc-accent-fg: #ffffff;
  --hc-ring: rgba(45, 168, 146, 0.25);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.hc-auth *, .hc-auth *::before, .hc-auth *::after { box-sizing: border-box; }

/* ── Card ── */
.hc-auth .hc-card {
  max-width: 420px;
  width: 100%;
  padding: 32px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

/* ── Typography ── */
.hc-auth .hc-title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
  color: var(--hc-fg);
  line-height: 1.4;
  text-align: center;
}
.hc-auth .hc-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--hc-muted-fg);
  line-height: 1.5;
  text-align: center;
}

/* ── Alerts ── */
.hc-auth .hc-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}
.hc-auth .hc-success {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

/* ── Form ── */
.hc-auth .hc-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.hc-auth .hc-field {
  margin-bottom: 16px;
}
.hc-auth .hc-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-fg);
  margin-bottom: 6px;
}
.hc-auth .hc-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--hc-fg);
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  -webkit-appearance: none;
}
.hc-auth .hc-input::placeholder {
  color: #94a3b8;
}
.hc-auth .hc-input:focus {
  border-color: var(--hc-accent);
  box-shadow: 0 0 0 3px var(--hc-ring);
}

/* ── Remember / Forgot row ── */
.hc-auth .hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}
.hc-auth .hc-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hc-fg);
  cursor: pointer;
  font-size: 13px;
}
.hc-auth .hc-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--hc-border);
  border-radius: 4px;
  background: var(--hc-bg);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: background .15s, border-color .15s;
}
.hc-auth .hc-checkbox:checked {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
}
.hc-auth .hc-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hc-auth .hc-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--hc-ring);
}

/* ── Links ── */
.hc-auth .hc-link {
  color: var(--hc-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}
.hc-auth .hc-link:hover {
  text-decoration: underline;
}

/* ── Buttons ── */
.hc-auth .hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s, border-color .15s, box-shadow .15s, opacity .15s;
  -webkit-appearance: none;
}
.hc-auth .hc-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--hc-ring);
}

/* Primary */
.hc-auth .hc-btn-primary {
  background: var(--hc-accent);
  color: var(--hc-accent-fg);
  border-color: var(--hc-accent);
}
.hc-auth .hc-btn-primary:hover { background: #269b86; border-color: #269b86; }
.hc-auth .hc-btn-primary:active { background: #1f8a77; }

/* Outline */
.hc-auth .hc-btn-outline {
  background: var(--hc-bg);
  color: var(--hc-fg);
  border-color: var(--hc-border);
}
.hc-auth .hc-btn-outline:hover { border-color: var(--hc-accent); color: var(--hc-accent); }
.hc-auth .hc-btn-outline:active { background: var(--hc-muted); }

/* Disabled / loading */
.hc-auth .hc-btn[disabled], .hc-auth .hc-btn.hc-loading { opacity: 0.55; pointer-events: none; }
.hc-auth .hc-btn.hc-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: hc-spin .6s linear infinite;
  margin-left: 6px;
}
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* ── Divider ── */
.hc-auth .hc-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--hc-muted-fg);
}
.hc-auth .hc-divider::before,
.hc-auth .hc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hc-border);
}

/* ── Social Buttons (stacked, full-width, shadcn style) ── */
.hc-auth .hc-social-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hc-auth .hc-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hc-fg);
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  font-family: inherit;
  line-height: 1;
}
.hc-auth .hc-btn-social:hover {
  background: var(--hc-muted);
  border-color: #cbd5e1;
}
.hc-auth .hc-btn-social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--hc-ring);
}
.hc-auth .hc-btn-social .hc-btn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ── Footer text ── */
.hc-auth .hc-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--hc-muted-fg);
  margin: 20px 0 0;
}

/* ── Password match indicator ── */
.hc-auth .hc-pw-match {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  min-height: 0;
}
.hc-auth .hc-pw-match:empty {
  display: none;
}
.hc-auth .hc-pw-ok { color: #15803d; }
.hc-auth .hc-pw-no { color: #b91c1c; }

/* ── Input wrapper (for eye toggle) ── */
.hc-auth .hc-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.hc-auth .hc-input-wrap .hc-input {
  padding-right: 44px;
}
.hc-auth .hc-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  cursor: pointer;
  color: #94a3b8;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.hc-auth .hc-eye:hover {
  color: var(--hc-fg);
}
.hc-auth .hc-eye svg {
  display: block;
  pointer-events: none;
}

/* ── Terms checkbox field ── */
.hc-auth .hc-field-terms {
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 0;
}
