.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

/* ── Botones ── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-btn--google {
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.auth-btn--google:hover:not(:disabled) { background: #f8f9fa; }

.auth-btn--primary {
  background: #2ec4b6;
  color: #fff;
}
.auth-btn--primary:hover:not(:disabled) { background: #29b0a3; }

.auth-btn--ghost {
  background: transparent;
  color: #6b7280;
  font-weight: 400;
  font-size: 0.8125rem;
  padding: 6px 0;
  width: auto;
  align-self: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-btn--ghost:hover:not(:disabled) { color: #374151; }

.auth-btn--signout {
  margin-top: 4px;
}

/* ── Google icon ── */
.auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Form ── */
.auth-otp-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.auth-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
}
.auth-input:focus { border-color: #2ec4b6; }

/* ── Hint / messages ── */
.auth-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  text-align: center;
}

.auth-message {
  font-size: 0.8125rem;
  min-height: 1em;
  text-align: center;
}
.auth-message--error { color: #dc2626; }
.auth-message--ok    { color: #16a34a; }

/* ── Sent state ── */
.auth-panel--sent {
  align-items: center;
  text-align: center;
  gap: 6px;
}
.auth-sent-icon { font-size: 2rem; }
.auth-sent-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #111827;
  margin: 0;
}
.auth-sent-body {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── What-is-this notice ── */
.auth-what-is-this {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
}

/* ── Consent checkbox ── */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.775rem;
  color: #374151;
  line-height: 1.45;
  cursor: pointer;
}
.auth-consent-check {
  flex-shrink: 0;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: #2ec4b6;
  cursor: pointer;
}

/* ── Links dentro del panel ── */
.auth-link {
  color: #2ec4b6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-link:hover { color: #29b0a3; }

/* ── User state ── */
.auth-panel--user {
  align-items: stretch;
  gap: 8px;
}
.auth-avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
  align-self: center;
}
.auth-user-email {
  font-size: 0.8125rem;
  color: #6b7280;
  word-break: break-all;
  text-align: center;
}

/* ── User actions row ── */
.auth-user-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

/* ── Danger button (ghost) ── */
.auth-btn--danger-ghost {
  background: transparent;
  color: #dc2626;
  font-weight: 400;
  font-size: 0.75rem;
  padding: 4px 0;
  width: auto;
  align-self: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.auth-btn--danger-ghost:hover { color: #b91c1c; }

/* ── Delete confirm state ── */
.auth-panel--delete-confirm,
.auth-panel--deleted {
  align-items: center;
  text-align: center;
  gap: 8px;
}
.auth-delete-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #111827;
  margin: 0;
}
.auth-delete-body {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.auth-btn--danger {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.auth-btn--danger:hover:not(:disabled) { background: #b91c1c; }
.auth-btn--danger:disabled { opacity: 0.55; cursor: not-allowed; }
