/* auth-social.css — Social Login, Passkey & TOTP styles */

/* ── Social Login Buttons ─────────────────────────── */
.social-login-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-hard);
  background: var(--card-solid);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: var(--neu-out);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.social-btn:active {
  transform: translateY(0);
}

.social-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Google hover */
.google-btn:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: rgba(66, 133, 244, 0.04);
}

body.dark .google-btn:hover {
  background: rgba(66, 133, 244, 0.08);
}

/* GitHub hover */
.github-btn:hover {
  border-color: var(--border-hard);
  background: var(--bg2);
}

/* Passkey hover */
.passkey-btn {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.passkey-btn .social-icon {
  color: var(--bg);
}

.passkey-btn:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ── Divider ──────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-hard);
}

.divider span {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .06em;
  color: var(--faint);
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── TOTP Form ────────────────────────────────────── */
.totp-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
  color: var(--accent);
}

.totp-input-wrap {
  display: flex;
  justify-content: center;
}

.totp-code-input {
  text-align: center;
  letter-spacing: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 14px 20px;
  width: 100%;
  border-radius: 12px;
  padding-right: 14px;
}

.totp-code-input:focus {
  border-color: var(--accent);
  box-shadow: var(--neu-in), 0 0 0 3px var(--accent-light);
}

/* ── Inline link button ───────────────────────────── */
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity .2s;
}

.link-btn:hover { opacity: .7; }

/* ── OAuth Error Banner ────────────────────────────── */
.oauth-error-banner {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--f-mono);
  font-size: .72rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  animation: fadeUp .3s cubic-bezier(.22,1,.36,1) both;
}

/* ── Passkey Loading State ────────────────────────── */
.passkey-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
}

.passkey-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--border-hard);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

.passkey-loading p {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 480px) {
  .social-btn {
    font-size: .7rem;
    padding: 10px 12px;
    gap: 8px;
  }

  .totp-code-input {
    letter-spacing: 8px;
    font-size: 1.2rem;
  }
}